Class UserFilter

java.lang.Object
jme3utilities.minie.UserFilter
All Implemented Interfaces:
BulletDebugAppState.DebugAppStateFilter

public class UserFilter extends Object implements BulletDebugAppState.DebugAppStateFilter
A simple DebugAppStateFilter that selects physics objects associated with a specific user object. Instances are immutable.
  • Constructor Details

    • UserFilter

      public UserFilter(Object userObject)
      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

      public boolean displayObject(Object physicsObject)
      Test whether the specified physics object should be displayed/dumped.
      Specified by:
      displayObject in interface BulletDebugAppState.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