Package com.github.stephengold.joltjni
Class GroupFilterTableRef
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.template.Ref
com.github.stephengold.joltjni.GroupFilterTableRef
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
A counted reference to a
GroupFilterTable object. (native type:
Ref<GroupFilterTable>)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisableCollision(int subGroup1, int subGroup2) Disable collisions between the specified subgroups.voidenableCollision(int subGroup1, int subGroup2) Enable collisions between the specified subgroups.getPtr()Temporarily access the referencedGroupFilterTable.longtargetVa()Return the address of the nativeGroupFilterTable.toRef()Create another counted reference to the nativeGroupFilterTable.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
GroupFilterTableRef
public GroupFilterTableRef()Instantiate an empty reference.
-
-
Method Details
-
disableCollision
public void disableCollision(int subGroup1, int subGroup2) Disable collisions between the specified subgroups.- Parameters:
subGroup1- the ID of the first subgroupsubGroup2- the ID of the 2nd subgroup
-
enableCollision
public void enableCollision(int subGroup1, int subGroup2) Enable collisions between the specified subgroups.- Parameters:
subGroup1- the ID of the first subgroupsubGroup2- the ID of the 2nd subgroup
-
getPtr
Temporarily access the referencedGroupFilterTable. -
targetVa
public long targetVa()Return the address of the nativeGroupFilterTable. No objects are affected.- Specified by:
targetVain interfaceConstJoltPhysicsObject- Overrides:
targetVain classJoltPhysicsObject- Returns:
- a virtual address (not zero)
-
toRef
Create another counted reference to the nativeGroupFilterTable.
-