Package jme3utilities.minie
Class PhysicsDescriber
java.lang.Object
jme3utilities.debug.Describer
jme3utilities.minie.PhysicsDescriber
- All Implemented Interfaces:
Cloneable
Generate compact textual descriptions of physics objects for debugging
purposes.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a copy of this PhysicsDescriber.describe
(CollisionShape shape) Generate a textual description for a CollisionShape.describe
(CollisionConfiguration configuration) Generate a textual description for a CollisionConfiguration.describe
(RotationalLimitMotor motor) Describe the specified RotationalLimitMotor.describe
(TranslationalLimitMotor motor, int axisIndex) Describe the indexed axis of the specified TranslationalLimitMotor.describe
(PhysicsJoint joint) Generate a brief textual description for a PhysicsJoint.describe
(SoftBodyMaterial material) Generate a brief textual description for the specified PhysicsSoftBody.Materialdescribe
(VehicleWheel wheel) Describe the specified VehicleWheel.describe
(SoftBodyWorldInfo info) Generate a brief textual description for the specified SoftBodyWorldInfo.describe1
(SoftBodyConfig config) Generate the first line of a textual description for the specified SoftBodyConfig.describe2
(SoftBodyConfig config) Generate the 2nd line of a brief textual description for the specified SoftBodyConfig.describe2
(VehicleWheel wheel) Generate the 2nd line of a textual description for the specified VehicleWheel.describeAngular
(SixDofJoint joint) Describe the angular components of the specified SixDofJoint.describeDof
(New6Dof constraint, int dofIndex) Describe the indexed degree of freedom of the specified New6Dof constraint.Briefly describe the collision group and collide-with groups of the specified collision object.describeJointInBody
(PhysicsJoint joint, PhysicsBody body, boolean forceId) Describe the specified PhysicsJoint in the context of the specified body.describeJointInSpace
(PhysicsJoint joint, boolean forceIds) Describe the specified joint in the context of a PhysicsSpace.describeLinear
(SixDofJoint joint) Describe the linear components of the specified SixDofJoint.Describe the user of a collision object.Methods inherited from class jme3utilities.debug.Describer
describe, describeHalfExtents, describeScale, listSeparator, setListSeparator
-
Field Details
-
logger
message logger for this class
-
-
Constructor Details
-
PhysicsDescriber
public PhysicsDescriber()Instantiate a describer with the default separator.This no-arg constructor was made explicit to avoid javadoc warnings from JDK 18+.
-
-
Method Details
-
describe
Generate a textual description for a CollisionConfiguration.- Parameters:
configuration
- the configuration to describe (not null, unaffected)- Returns:
- description (not null)
-
describe
Generate a textual description for a CollisionShape.- Parameters:
shape
- (not null, unaffected)- Returns:
- description (not null)
-
describe
Generate a brief textual description for a PhysicsJoint.- Parameters:
joint
- (not null, unaffected)- Returns:
- description (not null, not empty)
-
describe
Describe the specified RotationalLimitMotor.- Parameters:
motor
- the motor to describe (not null, unaffected)- Returns:
- descriptive text (not null, not empty)
-
describe
Generate a brief textual description for the specified PhysicsSoftBody.Material- Parameters:
material
- the Material to describe (not null, unaffected)- Returns:
- description (not null, not empty)
-
describe
Generate a brief textual description for the specified SoftBodyWorldInfo.- Parameters:
info
- the info to describe (not null, unaffected)- Returns:
- description (not null, not empty)
-
describe
Describe the indexed axis of the specified TranslationalLimitMotor.- Parameters:
motor
- the motor to describe (not null, unaffected)axisIndex
- which axis: 0→X, 1→Y, 2→Z- Returns:
- descriptive text (not null, not empty)
-
describe
Describe the specified VehicleWheel.- Parameters:
wheel
- the wheel to describe (not null, unaffected)- Returns:
- descriptive text (not null, not empty)
-
describe1
Generate the first line of a textual description for the specified SoftBodyConfig.- Parameters:
config
- the config to describe (not null, unaffected)- Returns:
- description (not null, not empty)
-
describe2
Generate the 2nd line of a brief textual description for the specified SoftBodyConfig.- Parameters:
config
- the config to describe (not null, unaffected)- Returns:
- description (not null, not empty)
-
describe2
Generate the 2nd line of a textual description for the specified VehicleWheel.- Parameters:
wheel
- the wheel to describe (not null, unaffected)- Returns:
- description (not null, not empty)
-
describeAngular
Describe the angular components of the specified SixDofJoint.- Parameters:
joint
- the joint to describe (not null, unaffected)- Returns:
- descriptive text (not null, not empty)
-
describeDof
Describe the indexed degree of freedom of the specified New6Dof constraint.- Parameters:
constraint
- the constraint to describe (not null, unaffected)dofIndex
- which degree of freedom (0→X translation, 1→Y translation, 2→Z translation, 3→X rotation, 4→Y rotation, 5→Z rotation)- Returns:
- descriptive text (not null, not empty)
-
describeGroups
Briefly describe the collision group and collide-with groups of the specified collision object.- Parameters:
pco
- the object to describe (not null, unaffected)- Returns:
- descriptive text (not null, may be empty)
-
describeJointInBody
Describe the specified PhysicsJoint in the context of the specified body.- Parameters:
joint
- the joint to describe (not null, unaffected)body
- one end of the jointforceId
- true to force inclusion of the PCO native IDs, false to include them only when there's no user or application data- Returns:
- descriptive text (not null, not empty)
-
describeJointInSpace
Describe the specified joint in the context of a PhysicsSpace.- Parameters:
joint
- the joint to describe (not null, unaffected)forceIds
- true to force inclusion of PCO native IDs, false to include them only when there's no user or application data- Returns:
- descriptive text (not null, not empty)
-
describeLinear
Describe the linear components of the specified SixDofJoint.- Parameters:
joint
- the joint to describe (not null, unaffected)- Returns:
- descriptive text (not null, not empty)
-
describeUser
Describe the user of a collision object.- Parameters:
pco
- the collision object to describe (not null, unaffected)- Returns:
- a descriptive string (not null, may be empty)
-
clone
Create a copy of this PhysicsDescriber.- Overrides:
clone
in classDescriber
- Returns:
- a new instance, equivalent to this one
- Throws:
CloneNotSupportedException
- if the superclass isn't cloneable
-