|
Drag[en]gine Script Module DragonScript 1.35
|
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 () |
| Behavior has been added to element. | |
| void | onRemoveFromElement () |
| Behavior has been removed from element. | |
| 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 Member Functions inherited from Dragengine.Scenery.DefaultECAttachableBehavior | |
| void | attachToParent (Element parent) |
| void | dispose () |
| void | enterFrame () |
| void | geometryChanged () |
| BehaviorElement | getElement () |
| DefaultECAttachableBehavior | new () |
| Create default attachable behavior instance. | |
| String | persistencyFactoryName () |
| bool | requiresEnterFrame () |
| bool | requiresThink () |
| void | safeDispose () |
| Remove from element if present then call dispose(). | |
| void | setElement (BehaviorElement element) |
| void | stateChanged () |
| void | think (float elapsed) |
| void | writeObjectToFile (PersistencyEnvironment env, FileWriter writer) |
Public Attributes | |
| ECBehaviorVRBody.Instance | pBehavior |
| DebugDrawer | pDDSkeleton |
| float | pLengthBoneTip |
| Matrix | pMatrixTransform |
| float | pThicknessSkeletonLine |
| Public Attributes inherited from Dragengine.Scenery.DefaultECAttachableBehavior | |
| BehaviorElement | pElement |
| bool | pRequiresEnterFrame |
| bool | pRequiresThink |
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) |
| Protected Member Functions inherited from Dragengine.Scenery.DefaultECAttachableBehavior | |
| void | setRequiresEnterFrame (bool required) |
| Set if behavior instance requires enterFrame() to be called. | |
| void | setRequiresThink (bool required) |
| Set if behavior instance requires think() and postThink() to be called. | |
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 |
Referenced by log().
|
protected |
References getThicknessSkeletonLine(), and pThicknessSkeletonLine.
|
protected |
|
protected |
References setBoneCoordSystemsVisible().
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.addToGameWorld | ( | ) |
Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.
Referenced by log().
| ECBehaviorVRBody.Instance Dragengine.Debugging.DebugBehaviorVRBodyPose.getBehavior | ( | ) |
| bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getBoneCoordSystemsVisible | ( | ) |
|
protected |
References pDDSkeleton.
Referenced by log().
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthBoneTip | ( | ) |
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthCoordAxis | ( | ) |
Length of coordinate axis lines in meters.
References pLengthBoneTip, and pThicknessSkeletonLine.
Referenced by log().
| bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getSkeletonVisible | ( | ) |
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessCoordAxis | ( | ) |
Thickness of coordinate axis lines in meters.
Referenced by log().
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessSkeletonLine | ( | ) |
| Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.getTransformMatrix | ( | ) |
Transformation matrix for the debug drawer relative to behavior coordinate system.
References Dragengine.Scenery.DefaultECAttachableBehavior.setRequiresThink().
Referenced by log().
|
protected |
References addCoordSystem(), addLineShape(), addToGameWorld(), Dragengine.Scenery.DefaultECAttachableBehavior.getElement(), getInputDevice(), getLengthBoneTip(), getLengthCoordAxis(), getThicknessCoordAxis(), getTransformMatrix(), log(), new(), onAddToElement(), onRemoveFromElement(), pBehavior, pDDSkeleton, pLengthBoneTip, pMatrixTransform, postThink(), pThicknessSkeletonLine, removeFromGameWorld(), setLengthBoneTip(), setLengthCoordAxis(), setThicknessCoordAxis(), setThicknessSkeletonLine(), setTransformMatrix(), update(), updateCoordSystems(), and updateSkeleton().
Referenced by log().
| DebugBehaviorVRBodyPose Dragengine.Debugging.DebugBehaviorVRBodyPose.new | ( | ECBehaviorVRBody.Instance | behavior | ) |
Create debug instance for behavior.
References new(), pBehavior, and pMatrixTransform.
Referenced by getBehavior(), getLengthBoneTip(), log(), and new().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.onAddToElement | ( | ) |
Behavior has been added to element.
Called by setElement() after element has been set in these situations:
Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.
References getSkeletonVisible(), and pDDSkeleton.
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.onRemoveFromElement | ( | ) |
Behavior has been removed from element.
Called by setElement() before element is set to null in these situations:
Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.
References setSkeletonVisible().
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.postThink | ( | float | elapsed | ) |
Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.
References pBehavior.
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.removeFromGameWorld | ( | ) |
Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setBoneCoordSystemsVisible | ( | bool | visible | ) |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setLengthBoneTip | ( | float | length | ) |
Set length of bone tip extension in meters.
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setLengthCoordAxis | ( | float | length | ) |
Set length of coordinate axis lines in meters.
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setSkeletonVisible | ( | bool | visible | ) |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setThicknessCoordAxis | ( | float | thickness | ) |
Set thickness of coordinate axis lines in meters.
Referenced by log().
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setThicknessSkeletonLine | ( | float | thickness | ) |
| void Dragengine.Debugging.DebugBehaviorVRBodyPose.setTransformMatrix | ( | Matrix | matrix | ) |
Set transformation matrix for the debug drawer relative to behavior coordinate system.
References getBehavior().
Referenced by log().
|
protected |
Referenced by log().
|
protected |
Referenced by log().
|
protected |
References getBoneCoordSystemsVisible().
Referenced by log().
| ECBehaviorVRBody.Instance Dragengine.Debugging.DebugBehaviorVRBodyPose.pBehavior |
Referenced by log(), new(), and postThink().
| DebugDrawer Dragengine.Debugging.DebugBehaviorVRBodyPose.pDDSkeleton |
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.pLengthBoneTip |
Referenced by getLengthCoordAxis(), and log().
| Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.pMatrixTransform |
| float Dragengine.Debugging.DebugBehaviorVRBodyPose.pThicknessSkeletonLine |
Referenced by addCoordSystem(), getLengthCoordAxis(), and log().