|
Drag[en]gine Script Module DragonScript 1.32.1
|
Debug ECBehaviorVRBody. More...
Public Member Functions | |
| void | addToGameWorld () |
| ECBehaviorVRBody.Instance | getBehavior () |
| Monitored behavior. | |
| bool | getBoneCoordSystemsVisible () |
| Bone coordinate systems are visible. | |
| float | getLengthBoneTip () |
| Length of bone tip extension in meters. | |
| float | getLengthCoordAxis () |
| Length of coordinate axis lines in meters. | |
| bool | getSkeletonVisible () |
| Skeleton is visible. | |
| float | getThicknessCoordAxis () |
| Thickness of coordinate axis lines in meters. | |
| float | getThicknessSkeletonLine () |
| Thickness of skeleton lines in meters. | |
| Matrix | getTransformMatrix () |
| Transformation matrix for the debug drawer relative to behavior coordinate system. | |
| DebugBehaviorVRBodyPose | new (ECBehaviorVRBody.Instance behavior) |
| Create debug instance for behavior. | |
| void | onAddToElement () |
| void | onRemoveFromElement () |
| void | postThink (float elapsed) |
| void | removeFromGameWorld () |
| void | setBoneCoordSystemsVisible (bool visible) |
| Set if bone coordinate systems are visible. | |
| void | setLengthBoneTip (float length) |
| Set length of bone tip extension in meters. | |
| void | setLengthCoordAxis (float length) |
| Set length of coordinate axis lines in meters. | |
| void | setSkeletonVisible (bool visible) |
| Set if skeleton is visible. | |
| void | setThicknessCoordAxis (float thickness) |
| Set thickness of coordinate axis lines in meters. | |
| void | setThicknessSkeletonLine (float thickness) |
| Set thickness of skeleton lines in meters. | |
| void | setTransformMatrix (Matrix matrix) |
| Set transformation matrix for the debug drawer relative to behavior coordinate system. | |
Public Attributes | |
| ECBehaviorVRBody.Instance | pBehavior |
| DebugDrawer | pDDSkeleton |
| float | pLengthBoneTip |
| Matrix | pMatrixTransform |
| float | pThicknessSkeletonLine |
Protected Member Functions | |
| void | addCoordSystem (ShapeList shapesX, ShapeList shapesY, ShapeList shapesZ, Matrix matrix) |
| void | addCoordSystem (ShapeList shapesX, ShapeList shapesY, ShapeList shapesZ, Matrix matrix, float scale) |
| void | addLineShape (ShapeList shapes, InputDevice device, int indexHead) |
| void | addLineShape (ShapeList shapes, InputDevice device, int indexHead, int indexTail) |
| InputDevice | getInputDevice () |
| void | log (String message) |
| void | update () |
| void | updateCoordSystems (InputDevice device, DMatrix matrix) |
| void | updateSkeleton (InputDevice device, DMatrix matrix) |
Debug ECBehaviorVRBody.
To use create an instance of DebugBehaviorVRBodyPose with the behavior to monitor then call BehaviorElement::addAttachableBehavior(). The debug class attaches to the behavior element owning the behavior instance. To remove the debug class from the behavior element call #safeDispose().
Displays a debug skeleton showing the body bone poses.
Five shapes are used for the skeleton visualization:
|
protected |
|
protected |
|
protected |
|
protected |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.addToGameWorld | ( | ) |
| ECBehaviorVRBody.Instance Dragengine.Debugging.DebugBehaviorVRBodyPose.getBehavior | ( | ) |
Monitored behavior.
| bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getBoneCoordSystemsVisible | ( | ) |
Bone coordinate systems are visible.
|
protected |
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthBoneTip | ( | ) |
Length of bone tip extension in meters.
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthCoordAxis | ( | ) |
Length of coordinate axis lines in meters.
| bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getSkeletonVisible | ( | ) |
Skeleton is visible.
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessCoordAxis | ( | ) |
Thickness of coordinate axis lines in meters.
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessSkeletonLine | ( | ) |
Thickness of skeleton lines in meters.
| Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.getTransformMatrix | ( | ) |
Transformation matrix for the debug drawer relative to behavior coordinate system.
|
protected |
| DebugBehaviorVRBodyPose Dragengine.Debugging.DebugBehaviorVRBodyPose.new | ( | ECBehaviorVRBody.Instance | behavior | ) |
Create debug instance for behavior.
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.onAddToElement | ( | ) |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.onRemoveFromElement | ( | ) |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.postThink | ( | float | elapsed | ) |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.removeFromGameWorld | ( | ) |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setBoneCoordSystemsVisible | ( | bool | visible | ) |
Set if bone coordinate systems are visible.
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setLengthBoneTip | ( | float | length | ) |
Set length of bone tip extension in meters.
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setLengthCoordAxis | ( | float | length | ) |
Set length of coordinate axis lines in meters.
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setSkeletonVisible | ( | bool | visible | ) |
Set if skeleton is visible.
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setThicknessCoordAxis | ( | float | thickness | ) |
Set thickness of coordinate axis lines in meters.
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setThicknessSkeletonLine | ( | float | thickness | ) |
Set thickness of skeleton lines in meters.
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setTransformMatrix | ( | Matrix | matrix | ) |
Set transformation matrix for the debug drawer relative to behavior coordinate system.
|
protected |
|
protected |
|
protected |
| ECBehaviorVRBody.Instance Dragengine.Debugging.DebugBehaviorVRBodyPose.pBehavior |
| DebugDrawer Dragengine.Debugging.DebugBehaviorVRBodyPose.pDDSkeleton |
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.pLengthBoneTip |
| Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.pMatrixTransform |
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.pThicknessSkeletonLine |