Class NegativeAppDataFilter

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

public class NegativeAppDataFilter extends Object implements BulletDebugAppState.DebugAppStateFilter
A simple DebugAppStateFilter that selects any physics objects NOT associated with a specific application-data object. Instances are immutable.
  • Constructor Details

    • NegativeAppDataFilter

      public NegativeAppDataFilter(Object appData)
      Instantiate a filter for the specified application-data object.
      Parameters:
      appData - the desired object (alias created) or null to display/dump objects without application data
  • 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 physicsObject should be displayed/dumped, false if it shouldn't be