KudanAR - Android  1.6.0
ARBoneNode Class Reference

Inherits ARNode.

Public Member Functions

Matrix4f getOffsetMatrix ()
 
void setOffsetMatrix (Matrix4f offsetMatrix)
 
void setOffsetMatrix (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
 
- Public Member Functions inherited from ARNode
 ARNode ()
 
 ARNode (String name)
 
void remove ()
 
void removeAllChildren ()
 
void addChild (ARNode child)
 
ARNode getParent ()
 
void setParent (ARNode parent)
 
List< ARNodegetChildren ()
 
ARNode getWorld ()
 
Vector3f getPosition ()
 
void setPosition (Vector3f position)
 
void setPosition (float x, float y, float z)
 
void translateBy (float x, float y, float z)
 
void scaleBy (float x, float y, float z)
 
Vector3f getScale ()
 
void setScale (Vector3f scale)
 
void setScale (float x, float y, float z)
 
void scaleByUniform (float scale)
 
Quaternion getOrientation ()
 
void setOrientation (Quaternion orientation)
 
void setOrientation (float x, float y, float z, float w)
 
void rotateByQuaternion (Quaternion quaternion)
 
void rotateByDegrees (float angle, float x, float y, float z)
 
Matrix4f getFullTransform ()
 
Vector3f getFullScale ()
 
Quaternion getFullOrientation ()
 
Matrix4f getLocalTransform ()
 
Matrix4f getWorldTransform ()
 
void render ()
 
boolean getVisible ()
 
void setVisible (boolean visible)
 
Quaternion getWorldOrientation ()
 
Vector3f getWorldScale ()
 
Vector3f getWorldPosition ()
 
Vector3f getFullPosition ()
 
String getName ()
 
void setName (String name)
 
void preRender ()
 
void postRender ()
 
ARNode findChildByName (String name)
 
void addChildren (List< ARNode > children)
 
void translateByVector (Vector3f translation)
 
void scaleByVector (Vector3f scale)
 
void rotateByRadians (float angle, float x, float y, float z)
 

Detailed Description

An ARBoneNode is a type of ARNode that represents a bone in a model's mesh. They are structures that describe how certain parts of a mesh deform with the animation of a scene node. The node describes part of the current pose of the skeleton. These are imported automatically by the Model Importer and are used for skeletal animations.

Member Function Documentation

◆ getOffsetMatrix()

Matrix4f ARBoneNode.getOffsetMatrix ( )

The bones offset matrix describes the bone's transformation from its unanimated pose to its animated pose. A vertex's animated position is its unanimated position multiplied by its bone(s) offset matrix and their influence.

Returns
The offset matrix of this bone.

◆ setOffsetMatrix() [1/2]

void ARBoneNode.setOffsetMatrix ( float  m00,
float  m01,
float  m02,
float  m03,
float  m10,
float  m11,
float  m12,
float  m13,
float  m20,
float  m21,
float  m22,
float  m23,
float  m30,
float  m31,
float  m32,
float  m33 
)

Sets the offset matrix of this bone using 16 floats in row-major order.

Parameters
m00Float for element {0,0} of the matrix.
m01Float for element {0,1} of the matrix.
m02Float for element {0,2} of the matrix.
m03Float for element {0,3} of the matrix.
m10Float for element {1,0} of the matrix.
m11Float for element {1,1} of the matrix.
m12Float for element {1,2} of the matrix.
m13Float for element {1,3} of the matrix.
m20Float for element {2,0} of the matrix.
m21Float for element {2,1} of the matrix.
m22Float for element {2,2} of the matrix.
m23Float for element {2,3} of the matrix.
m30Float for element {3,0} of the matrix.
m31Float for element {3,1} of the matrix.
m32Float for element {3,2} of the matrix.
m33Float for element {3,3} of the matrix.

◆ setOffsetMatrix() [2/2]

void ARBoneNode.setOffsetMatrix ( Matrix4f  offsetMatrix)

Sets the offset matrix of this bone using a 4x4 Matrix.

Parameters
offsetMatrixThe 4x4 offset matrix to use.

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