Package jme3utilities.minie
Class UserFilter
java.lang.Object
jme3utilities.minie.UserFilter
- All Implemented Interfaces:
BulletDebugAppState.DebugAppStateFilter
A simple DebugAppStateFilter that selects physics objects associated with a
specific user object. Instances are immutable.
-
Constructor Summary
ConstructorDescriptionUserFilter
(Object userObject) Instantiate a filter for the specified user object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
displayObject
(Object physicsObject) Test whether the specified physics object should be displayed/dumped.
-
Constructor Details
-
UserFilter
Instantiate a filter for the specified user object.- Parameters:
userObject
- the desired user, or null to display/dump objects with no user
-
-
Method Details
-
displayObject
Test whether the specified physics object should be displayed/dumped.- Specified by:
displayObject
in interfaceBulletDebugAppState.DebugAppStateFilter
- Parameters:
physicsObject
- the joint or collision object to test (unaffected)- Returns:
- return true if the object should be displayed/dumped, false if it shouldn't be
-