A class that can be serialized in json Used to track an entire body/joint chain This is device agnostic, so it doesn't matter if this is kinect or some other device.
More...
Inherits EnableSerializableValue.
|
| void | AddJoint (string name, EnableJoint aJoint) |
| | Adds a joint to the EnableBody joint dictionary.
|
| |
| void | AddJoint (string name, Vector3 position, Quaternion orientation) |
| | Adds a joint to the EnableBody joint dictionary.
|
| |
| string | JSONString () |
| | Serializes the current EnableBody object to a JSON string.
|
| |
| string | Serialize () |
| | Serializes the current EnableBody object to a JSON string.
|
| |
| object | Deserialize (string json) |
| | Deserializes a json string and returns an object of type EnableBody.
|
| |
A class that can be serialized in json Used to track an entire body/joint chain This is device agnostic, so it doesn't matter if this is kinect or some other device.
◆ AddJoint() [1/2]
| void Enablegames.EnableBody.AddJoint |
( |
string | name, |
|
|
EnableJoint | aJoint ) |
|
inline |
Adds a joint to the EnableBody joint dictionary.
- Parameters
-
| name | The name of the joint. |
| aJoint | An EnableJoint object representing the joint. |
◆ AddJoint() [2/2]
| void Enablegames.EnableBody.AddJoint |
( |
string | name, |
|
|
Vector3 | position, |
|
|
Quaternion | orientation ) |
|
inline |
Adds a joint to the EnableBody joint dictionary.
- Parameters
-
| name | The name of the joint. |
| position | The position of the joint. |
| orientation | The orientation of the joint. |
◆ Deserialize()
| object Enablegames.EnableBody.Deserialize |
( |
string | json | ) |
|
|
inline |
Deserializes a json string and returns an object of type EnableBody.
- Parameters
-
| json | The json string to be deserialized. |
- Returns
- An object of type EnableBody.
◆ JSONString()
| string Enablegames.EnableBody.JSONString |
( |
| ) |
|
|
inline |
Serializes the current EnableBody object to a JSON string.
- Returns
- A JSON string representation of the EnableBody object.
◆ Serialize()
| string Enablegames.EnableBody.Serialize |
( |
| ) |
|
|
inline |
Serializes the current EnableBody object to a JSON string.
- Returns
- A JSON string representation of the EnableBody object.
The documentation for this class was generated from the following file:
- /Users/yiyangshang/egdl2/Assets/eag/Scripts/enablegames/Tracking/SerializableValues/EnableBody.cs