Handles the visualization of the skeleton joints.
More...
|
List< GameObject > | _listOfJoints = new List<GameObject>() |
| The list of joints used for visualization. More...
|
|
Handles the visualization of the skeleton joints.
◆ Awake()
void SkeletonManager.Awake |
( |
| ) |
|
|
inlineprivate |
◆ Inititialize()
void SkeletonManager.Inititialize |
( |
| ) |
|
|
inlineprivate |
◆ LeftOrRightHand()
void SkeletonManager.LeftOrRightHand |
( |
| ) |
|
|
inlineprivate |
Value dont update, so at this point orientation only works for one hand, default is right hand.
Change 0 to 1 to run for left hand. Sets the isRightHand hand bool to true or false with inforamtion from the gesture info
◆ radianToDegrees()
float SkeletonManager.radianToDegrees |
( |
float |
radiantValue | ) |
|
|
inlineprivate |
Calculates the radiant value to degrees
- Parameters
-
radiantValue | the radiant value |
- Returns
◆ ResetLineRenderers()
void SkeletonManager.ResetLineRenderers |
( |
| ) |
|
|
inlineprivate |
Reset the Linerenders when changing Skeleton Model 2D/3D
◆ SkeletonModel()
void SkeletonManager.SkeletonModel |
( |
int |
modelToLoad, |
|
|
int |
previousModel |
|
) |
| |
|
inlineprivate |
Create the hand model depending if you use 3D or 2D joints.
The model need to have 21 joints.
- Parameters
-
modelToLoad | The current model displayed |
previousModel | The previous model used |
◆ Start()
void SkeletonManager.Start |
( |
| ) |
|
|
inlineprivate |
◆ Update()
void SkeletonManager.Update |
( |
| ) |
|
|
inlineprivate |
◆ UpdateJointorientation()
void SkeletonManager.UpdateJointorientation |
( |
| ) |
|
|
inlineprivate |
Updates the orientation of the joints according to the orientation given by the SDK.
◆ UpdateJointPositions()
void SkeletonManager.UpdateJointPositions |
( |
| ) |
|
|
inlineprivate |
Updates the position of the joints according to the positions given by the SDK.
If confidence is to low, the joints will fade out.
◆ _listOfJoints
List<GameObject> SkeletonManager._listOfJoints = new List<GameObject>() |
The list of joints used for visualization.
◆ clampMinDepth
float SkeletonManager.clampMinDepth = 0.4f |
|
private |
used to clamp the depth value
◆ depthDivider
int SkeletonManager.depthDivider = 10 |
|
private |
Use this to make the depth values smaler to fit the depth of the hand.
◆ hasConfidence
bool SkeletonManager.hasConfidence |
|
private |
◆ instance
◆ isRightHand
bool SkeletonManager.isRightHand = false |
|
private |
Used to set the current hand detected by the camera.
◆ jointPrefab
GameObject [] SkeletonManager.jointPrefab |
|
private |
The prefab that will be used for visualization of the joints.
◆ jointsLength
int SkeletonManager.jointsLength = 21 |
|
private |
The number of Joints the skeleton is made of.
◆ jointsMaterial
Material [] SkeletonManager.jointsMaterial |
|
private |
The materials used on the joints / Line renderers.
◆ lineRenderers
LineRenderer [] SkeletonManager.lineRenderers = new LineRenderer[6] |
|
private |
The linerenderes used on the joints in the jointPrefabs.
◆ skeletonConfidenceThreshold
float SkeletonManager.skeletonConfidenceThreshold = 0.0001f |
|
private |
The documentation for this class was generated from the following file: