Package com.github.stephengold.joltjni
Class CharacterVsCharacterCollisionSimple
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.CharacterVsCharacterCollision
com.github.stephengold.joltjni.CharacterVsCharacterCollisionSimple
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<ConstJoltPhysicsObject>
A simple implementation of the Character-versus-Character collision
interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ConstCharacterVirtual character) Add the specified character to the collision list.voidremove(ConstCharacterVirtual character) Remove the specified character from the collide list.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
CharacterVsCharacterCollisionSimple
public CharacterVsCharacterCollisionSimple()Instantiate a default interface.
-
-
Method Details
-
add
Add the specified character to the collision list.- Parameters:
character- the character to add (not null)
-
remove
Remove the specified character from the collide list.- Parameters:
character- the character to add (not null)
-