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.
|
| 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.
|
| |
|
|
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.
|
| |
|
| bool | Moving [get, set] |
| | Represents the state of whether the skeleton is moving or not.
|
| |
Skeleton data. Calculates and holds all skeleton data which is needed by suki, etc. Calculates joint angles, min and max values,etc.
◆ 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
-
| vector | The vector. |
| normal | The 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
-
| vec1 | The first vector. |
| vec2 | The 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
-
| mygameObject | The GameObject to retrieve the SkeletonData component from. |
| skeletonData | The 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
-
| pointA | The first vector |
| pointB | The 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
-
| pointA | The first point. |
| pointB | The second point. |
| pointC | The third point. |
- Returns
- The plane normal vector.
◆ 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:
- /Users/yiyangshang/egdl2/Assets/eag/Scripts/enablegames/Avatar/SkeletonData.cs