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 sub-group ID.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 sub-group ID. The group is unaffected.- Returns:
- the
SubGroupIDvalue
-