Interface ConstGroupFilter
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject,ConstSerializableObject
- All Known Implementing Classes:
GroupFilter,GroupFilterTable
Read-only access to a
GroupFilter.-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCollide(ConstCollisionGroup group1, ConstCollisionGroup group2) Test whether the specified groups can collide.voidsaveBinaryState(StreamOut stream) Save the settings to the specified binary stream.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
Method Details
-
canCollide
Test whether the specified groups can collide. The filter is unaffected.- Parameters:
group1- the first group (not null, unaffected)group2- the 2nd group (not null, unaffected)- Returns:
trueif they can collide, otherwisefalse
-
saveBinaryState
Save the settings to the specified binary stream. The filter is unaffected.- Parameters:
stream- the stream to write to (not null)
-