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

Debug ECBehaviorVRBody. More...

Inheritance diagram for Dragengine.Debugging.DebugBehaviorVRBodyPose:

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)
 

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

◆ 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

◆ addToGameWorld()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.addToGameWorld ( )

◆ getBehavior()

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

Monitored behavior.

◆ getBoneCoordSystemsVisible()

bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getBoneCoordSystemsVisible ( )

Bone coordinate systems are visible.

◆ getInputDevice()

InputDevice Dragengine.Debugging.DebugBehaviorVRBodyPose.getInputDevice ( )
protected

◆ getLengthBoneTip()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthBoneTip ( )

Length of bone tip extension in meters.

◆ getLengthCoordAxis()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getLengthCoordAxis ( )

Length of coordinate axis lines in meters.

◆ getSkeletonVisible()

bool Dragengine.Debugging.DebugBehaviorVRBodyPose.getSkeletonVisible ( )

Skeleton is visible.

◆ getThicknessCoordAxis()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessCoordAxis ( )

Thickness of coordinate axis lines in meters.

◆ getThicknessSkeletonLine()

float Dragengine.Debugging.DebugBehaviorVRBodyPose.getThicknessSkeletonLine ( )

Thickness of skeleton lines in meters.

◆ getTransformMatrix()

Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.getTransformMatrix ( )

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

◆ log()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.log ( String  message)
protected

◆ new()

DebugBehaviorVRBodyPose Dragengine.Debugging.DebugBehaviorVRBodyPose.new ( ECBehaviorVRBody.Instance  behavior)

Create debug instance for behavior.

◆ onAddToElement()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.onAddToElement ( )

◆ onRemoveFromElement()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.onRemoveFromElement ( )

◆ postThink()

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

◆ removeFromGameWorld()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.removeFromGameWorld ( )

◆ setBoneCoordSystemsVisible()

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

Set if bone coordinate systems are visible.

◆ setLengthBoneTip()

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

Set length of bone tip extension in meters.

◆ setLengthCoordAxis()

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

Set length of coordinate axis lines in meters.

◆ setSkeletonVisible()

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

Set if skeleton is visible.

◆ setThicknessCoordAxis()

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

Set thickness of coordinate axis lines in meters.

◆ setThicknessSkeletonLine()

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

Set thickness of skeleton lines in meters.

◆ setTransformMatrix()

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

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

◆ update()

void Dragengine.Debugging.DebugBehaviorVRBodyPose.update ( )
protected

◆ updateCoordSystems()

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

◆ updateSkeleton()

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

Member Data Documentation

◆ pBehavior

ECBehaviorVRBody.Instance Dragengine.Debugging.DebugBehaviorVRBodyPose.pBehavior

◆ pDDSkeleton

DebugDrawer Dragengine.Debugging.DebugBehaviorVRBodyPose.pDDSkeleton

◆ pLengthBoneTip

float Dragengine.Debugging.DebugBehaviorVRBodyPose.pLengthBoneTip

◆ pMatrixTransform

Matrix Dragengine.Debugging.DebugBehaviorVRBodyPose.pMatrixTransform

◆ pThicknessSkeletonLine

float Dragengine.Debugging.DebugBehaviorVRBodyPose.pThicknessSkeletonLine

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