Package jme3utilities.minie
Class MyPco
java.lang.Object
jme3utilities.minie.MyPco
Utility methods that operate on physics collision objects.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
describe
(PhysicsRigidBody body) Briefly describe a rigid body for MyControlP or PhysicsDumper.static String
Generate a name for the specified collision object.static long
Parse the ID of a collision object from its name.
-
Field Details
-
logger
message logger for this class
-
-
Method Details
-
describe
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
Generate a name for the specified collision object.- Parameters:
pco
- object to name (not null, unaffected)- Returns:
- the name (not null, not empty)
-
parseId
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:
-