Humanoid Control for Unity v4
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Passer.Tracking.BodySkeleton Class Referenceabstract

Description

The representation of a tracked body

The bone hierarchy will be created below this transform at runtime.

Inheritance diagram for Passer.Tracking.BodySkeleton:
Passer.Tracking.TrackerComponent Passer.Tracking.PerceptionNeuron

Public Member Functions

Transform GetBoneTransform (Humanoid.Tracking.Bone boneId)
 Gets the transform of the tracked bone More...
 
TrackedBone GetBone (Humanoid.Tracking.Bone boneId)
 Gets the tracked bone More...
 
virtual void ShowSkeleton (bool shown)
 

Public Attributes

bool show = false
 Determines whether the skeleton should be rendered
 
Tracker.Status status
 The status of the tracking device
 

Protected Member Functions

abstract void InitializeSkeleton ()
 This function is used to intialize the tracked bones. More...
 
void UpdateSkeletonRender ()
 Updates the rendering of the bones
 
void EnableRenderer ()
 
void DisableRenderer ()
 
virtual void Start ()
 
virtual void Update ()
 

Protected Attributes

List< TrackedBone > bones
 The list of tracked bones
 
bool rendered
 
Transform realWorld
 

Member Function Documentation

◆ InitializeSkeleton()

abstract void Passer.Tracking.BodySkeleton.InitializeSkeleton ( )
protectedpure virtual

This function is used to intialize the tracked bones.

Implemented in Passer.Tracking.PerceptionNeuron.

◆ GetBoneTransform()

Transform Passer.Tracking.BodySkeleton.GetBoneTransform ( Humanoid.Tracking.Bone  boneId)

Gets the transform of the tracked bone

Parameters
boneIdThe requested bone
Returns
The tracked bone transform or null if it does not exist

◆ GetBone()

TrackedBone Passer.Tracking.BodySkeleton.GetBone ( Humanoid.Tracking.Bone  boneId)

Gets the tracked bone

Parameters
boneIdThe requested bone
Returns
The tracked bone or null if it does not exist

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