Interface ConstCollisionGroup
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
CollisionGroup
Read-only access to a
CollisionGroup.-
Method Summary
Modifier and TypeMethodDescriptionAccess the group filter.intReturn the main group ID.intReturn the subgroup ID.booleanisEqual(ConstCollisionGroup other) Test whether this object is equal to the argument.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getGroupFilter
ConstGroupFilter getGroupFilter()Access the group filter.- Returns:
- a new JVM object with the pre-existing native object assigned, or
nullif none
-
getGroupId
int getGroupId()Return the main group ID. The group is unaffected.- Returns:
- the
GroupIDvalue
-
getSubGroupId
int getSubGroupId()Return the subgroup ID. The group is unaffected.- Returns:
- the
SubGroupIDvalue
-
isEqual
Test whether this object is equal to the argument. Both objects are unaffected.- Parameters:
other- the properties to compare with (notnull, unaffected)- Returns:
trueif equal,falseif unequal
-