EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.SkeletonData Class Reference

Skeleton data. Calculates and holds all skeleton data which is needed by suki, etc. Calculates joint angles, min and max values,etc. More...

Inherits MonoBehaviour.

Collaboration diagram for Enablegames.SkeletonData:

Static Public Member Functions

static void GetSkeletonData (GameObject mygameObject, ref SkeletonData skeletonData)
 Retrieves the SkeletonData component from the specified GameObject. If the component does not exist, it attempts to add it to the GameObject.
 
static float DotProductAngle (Vector3 vec1, Vector3 vec2)
 Calculate the dot product as an angle.
 
static float AngleVectorPlane (Vector3 vector, Vector3 normal)
 Calculate the angle between a vector and a plane. The plane is made by a normal vector.
 
static Vector3 NormSub (Vector3 pointA, Vector3 pointB)
 Convert a plane defined by 3 points to a plane defined by a vector and a point. The plane point is the middle of the triangle defined by the 3 points.
 
static Vector3 PlaneFrom3Points (Vector3 pointA, Vector3 pointB, Vector3 pointC)
 Convert a plane defined by 3 points to a plane defined by a vector and a point. The plane point is the middle of the triangle defined by the 3 points.
 

Public Attributes

Animator animatorComponent
 The main component for controlling the animator of a character in the game.
 
AvatarSkeleton avatarSkeleton
 if null, gets component from GameObject
 
BiometricData biometricData
 Biometric data from separate communication.
 
string[] boneNames
 Array of body part names (mecanim joint names)
 
Vector3[] bonePos
 Array of positions.
 
string[] jointNames
 array of body part names (mecanim joint names)
 
float[] jointAng
 Array of angles.
 

Properties

bool Moving [get, set]
 Represents the state of whether the skeleton is moving or not.
 

Detailed Description

Skeleton data. Calculates and holds all skeleton data which is needed by suki, etc. Calculates joint angles, min and max values,etc.

Member Function Documentation

◆ AngleVectorPlane()

static float Enablegames.SkeletonData.AngleVectorPlane ( Vector3 vector,
Vector3 normal )
inlinestatic

Calculate the angle between a vector and a plane. The plane is made by a normal vector.

Parameters
vectorThe vector.
normalThe normal vector of the plane.
Returns
The angle between the vector and the plane in radians.

◆ DotProductAngle()

static float Enablegames.SkeletonData.DotProductAngle ( Vector3 vec1,
Vector3 vec2 )
inlinestatic

Calculate the dot product as an angle.

Parameters
vec1The first vector.
vec2The second vector.
Returns
The angle between the two vectors in radians.

◆ GetSkeletonData()

static void Enablegames.SkeletonData.GetSkeletonData ( GameObject mygameObject,
ref SkeletonData skeletonData )
inlinestatic

Retrieves the SkeletonData component from the specified GameObject. If the component does not exist, it attempts to add it to the GameObject.

Parameters
mygameObjectThe GameObject to retrieve the SkeletonData component from.
skeletonDataThe SkeletonData component that will be retrieved.

◆ NormSub()

static Vector3 Enablegames.SkeletonData.NormSub ( Vector3 pointA,
Vector3 pointB )
inlinestatic

Convert a plane defined by 3 points to a plane defined by a vector and a point. The plane point is the middle of the triangle defined by the 3 points.

Parameters
pointAThe first vector
pointBThe second vector
Returns
The normalized vector

◆ PlaneFrom3Points()

static Vector3 Enablegames.SkeletonData.PlaneFrom3Points ( Vector3 pointA,
Vector3 pointB,
Vector3 pointC )
inlinestatic

Convert a plane defined by 3 points to a plane defined by a vector and a point. The plane point is the middle of the triangle defined by the 3 points.

Parameters
pointAThe first point.
pointBThe second point.
pointCThe third point.
Returns
The plane normal vector.

Property Documentation

◆ Moving

bool Enablegames.SkeletonData.Moving
getset

Represents the state of whether the skeleton is moving or not.

The state of moving is determined based on the roboticData.moving property.

True if the skeleton is moving, false otherwise.


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