Class MyPco

java.lang.Object
jme3utilities.minie.MyPco

public final class MyPco extends Object
Utility methods that operate on physics collision objects.
  • Field Details

    • logger

      public static final Logger logger
      message logger for this class
  • Method Details

    • describe

      public static String describe(PhysicsRigidBody body)
      Briefly describe a rigid body for MyControlP or PhysicsDumper. TODO add a similar method for PhysicsCharacter
      Parameters:
      body - (not null, unaffected)
      Returns:
      a descriptive string (not null, not empty)
    • objectName

      public static String objectName(PhysicsCollisionObject pco)
      Generate a name for the specified collision object.
      Parameters:
      pco - object to name (not null, unaffected)
      Returns:
      the name (not null, not empty)
    • parseId

      public static long parseId(String name)
      Parse the ID of a collision object from its name.
      Parameters:
      name - the input text (not null, length>5)
      Returns:
      the object's ID
      See Also: