Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Debugging.DebugBehaviorVRBodyPose Class Reference

Debug ECBehaviorVRBody. More...

Inheritance diagram for Dragengine.Debugging.DebugBehaviorVRBodyPose:
Dragengine.Scenery.DefaultECAttachableBehavior

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.

Detailed Description

Debug ECBehaviorVRBody.

Version
1.31

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:

  • Shape 0 (blue/purple): Spine and head chain
  • Shape 1 (cyan): Left arm chain
  • Shape 2 (green): Right arm chain
  • Shape 3 (yellow): Left leg chain (full body only)
  • Shape 4 (orange): Right leg chain (full body only)

Member Function Documentation

◆ addCoordSystem() [1/2]

void Dragengine.Debugging.DebugBehaviorVRBodyPose.addCoordSystem ( ShapeList shapesX,
ShapeList shapesY,
ShapeList shapesZ,
Matrix matrix )
protected

Referenced by log().

◆ addCoordSystem() [2/2]

void Dragengine.Debugging.DebugBehaviorVRBodyPose.addCoordSystem ( ShapeList shapesX,
ShapeList shapesY,
ShapeList shapesZ,
Matrix matrix,
float scale )
protected

◆ addLineShape() [1/2]

void Dragengine.Debugging.DebugBehaviorVRBodyPose.addLineShape ( ShapeList shapes,
InputDevice device,
int indexHead )
protected

◆ addLineShape() [2/2]

void Dragengine.Debugging.DebugBehaviorVRBodyPose.addLineShape ( ShapeList shapes,
InputDevice device,
int indexHead,
int indexTail )
protected

References setBoneCoordSystemsVisible().

Referenced by log().

◆ addToGameWorld()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.addToGameWorld ( )

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

Referenced by log().

◆ getBehavior()

ECBehaviorVRBody.Instance Dragengine.Debugging.DebugBehaviorVRBodyPose.getBehavior ( )

Monitored behavior.

References new(), and pDDSkeleton.

Referenced by setTransformMatrix().

◆ getBoneCoordSystemsVisible()

bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getBoneCoordSystemsVisible ( )

Bone coordinate systems are visible.

References pDDSkeleton.

Referenced by updateSkeleton().

◆ getInputDevice()

InputDevice Dragengine.Debugging.DebugBehaviorVRBodyPose.getInputDevice ( )
protected

References pDDSkeleton.

Referenced by log().

◆ getLengthBoneTip()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthBoneTip ( )

Length of bone tip extension in meters.

References new(), and pDDSkeleton.

Referenced by log().

◆ getLengthCoordAxis()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthCoordAxis ( )

Length of coordinate axis lines in meters.

References pLengthBoneTip, and pThicknessSkeletonLine.

Referenced by log().

◆ getSkeletonVisible()

bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getSkeletonVisible ( )

Skeleton is visible.

References pDDSkeleton.

Referenced by onAddToElement().

◆ getThicknessCoordAxis()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessCoordAxis ( )

Thickness of coordinate axis lines in meters.

Referenced by log().

◆ getThicknessSkeletonLine()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessSkeletonLine ( )

Thickness of skeleton lines in meters.

References pDDSkeleton.

Referenced by addCoordSystem().

◆ getTransformMatrix()

Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.getTransformMatrix ( )

Transformation matrix for the debug drawer relative to behavior coordinate system.

References Dragengine.Scenery.DefaultECAttachableBehavior.setRequiresThink().

Referenced by log().

◆ log()

◆ new()

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().

◆ onAddToElement()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.onAddToElement ( )

Behavior has been added to element.

Called by setElement() after element has been set in these situations:

  • BehaviorElement#addAttachableBehavior()
  • BehaviorElement#readFromFile()

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

References getSkeletonVisible(), and pDDSkeleton.

Referenced by log().

◆ onRemoveFromElement()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.onRemoveFromElement ( )

Behavior has been removed from element.

Called by setElement() before element is set to null in these situations:

  • BehaviorElement#removeAttachableBehavior()

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

References setSkeletonVisible().

Referenced by log().

◆ postThink()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.postThink ( float elapsed)

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

References pBehavior.

Referenced by log().

◆ removeFromGameWorld()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.removeFromGameWorld ( )

Reimplemented from Dragengine.Scenery.DefaultECAttachableBehavior.

Referenced by log().

◆ setBoneCoordSystemsVisible()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.setBoneCoordSystemsVisible ( bool visible)

Set if bone coordinate systems are visible.

References pDDSkeleton.

Referenced by addLineShape().

◆ setLengthBoneTip()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.setLengthBoneTip ( float length)

Set length of bone tip extension in meters.

Referenced by log().

◆ setLengthCoordAxis()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.setLengthCoordAxis ( float length)

Set length of coordinate axis lines in meters.

Referenced by log().

◆ setSkeletonVisible()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.setSkeletonVisible ( bool visible)

Set if skeleton is visible.

References pDDSkeleton.

Referenced by onRemoveFromElement().

◆ setThicknessCoordAxis()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.setThicknessCoordAxis ( float thickness)

Set thickness of coordinate axis lines in meters.

Referenced by log().

◆ setThicknessSkeletonLine()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.setThicknessSkeletonLine ( float thickness)

Set thickness of skeleton lines in meters.

References pDDSkeleton.

Referenced by log().

◆ setTransformMatrix()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.setTransformMatrix ( Matrix matrix)

Set transformation matrix for the debug drawer relative to behavior coordinate system.

References getBehavior().

Referenced by log().

◆ update()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.update ( )
protected

Referenced by log().

◆ updateCoordSystems()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.updateCoordSystems ( InputDevice device,
DMatrix matrix )
protected

Referenced by log().

◆ updateSkeleton()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.updateSkeleton ( InputDevice device,
DMatrix matrix )
protected

References getBoneCoordSystemsVisible().

Referenced by log().

Member Data Documentation

◆ pBehavior

ECBehaviorVRBody.Instance Dragengine.Debugging.DebugBehaviorVRBodyPose.pBehavior

Referenced by log(), new(), and postThink().

◆ pDDSkeleton

◆ pLengthBoneTip

float Dragengine.Debugging.DebugBehaviorVRBodyPose.pLengthBoneTip

Referenced by getLengthCoordAxis(), and log().

◆ pMatrixTransform

Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.pMatrixTransform

Referenced by log(), and new().

◆ pThicknessSkeletonLine

float Dragengine.Debugging.DebugBehaviorVRBodyPose.pThicknessSkeletonLine

The documentation for this class was generated from the following file: