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<ConstJoltPhysicsObject>
A counted reference to a
GroupFilterTable object. (native type:
Ref<GroupFilterTable>)-
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 referencedGroupFilter.toRef()Create another counted reference to the referencedGroupFilter.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
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 referencedGroupFilter. -
toRef
Create another counted reference to the referencedGroupFilter.
-