Class Manus::Skeletons::Skeleton
ClassList > Manus > Skeletons > Skeleton
Skeleton handles all animation based on Polygon data from Manus Core.
Inherits the following classes: MonoBehaviour
Public Attributes
Type | Name |
---|---|
bool | debugAnimatedSkeleton |
bool | debugColliders |
bool | enableHaptics = = false |
bool | isLocalPlayer = = true |
OnDataApplied | onDataApplied |
uint? | sessionId |
SkeletonData | skeletonData |
uint? | sklSetupIdx |
Public Functions
Type | Name |
---|---|
bool | AllocateChains () Setup and create chains on skeleton and update their names. |
void | ApplyData (CoreSDK.Skeleton p_Skeleton, CoreSDK.ManusTimestamp? p_Time=null) Apply Manus Core skeleton data to plugin skeleton. |
void | ContinueAnimating () Continue animating after resetting it to the bindpose. |
void | LoadSkeleton () Load skeleton from Manus Development Dashboard. |
delegate void | OnDataApplied () |
bool | PrepareSkeleton () Generate rotation offsets for skeleton. |
void | ReSetupNodeTransforms () Redo node transform values. |
void | ResetSkeletonData () Resets SkeletonData and clears anti scale nodes. |
void | ResetToBindPose (bool p_AlsoResetScale=false) Reset to original starting pose. |
void | SendSkeleton () Send skeleton to Manus Core and setup skeleton to allow for scaling. |
void | SendSkeletonToToolForSetup () Send skeleton to Manus Development Dashboard. |
List< MeshSetup > | SetupMeshes () Find and setup all meshes in the skeleton. |
void | SetupNodes () Create nodes from mesh transforms and add them to the skeleton. |
void | UpdateEnableHaptics () Update the boolean associated to the haptics enabled based on the input from the user in the GUI. |
Protected Functions
Type | Name |
---|---|
virtual void | OnNodeCreated (Node p_Node) Called upon node creation. |
virtual void | OnNodeSetup () Called on node setup. |
virtual void | UpdateNames () Update names of skeleton, chains and nodes. |
void | UpdateNodesAndChainsNames () Update all names of chains and nodes. |
Public Attributes Documentation
variable debugAnimatedSkeleton
variable debugColliders
variable enableHaptics
variable isLocalPlayer
variable onDataApplied
variable sessionId
variable skeletonData
variable sklSetupIdx
Public Functions Documentation
function AllocateChains
function ApplyData
Apply Manus Core skeleton data to plugin skeleton.
inline void Manus::Skeletons::Skeleton::ApplyData (
CoreSDK.Skeleton p_Skeleton,
CoreSDK.ManusTimestamp ? p_Time=null
)
Parameters:
p_Skeleton
Skeleton data to apply
function ContinueAnimating
function LoadSkeleton
function OnDataApplied
function PrepareSkeleton
function ReSetupNodeTransforms
function ResetSkeletonData
function ResetToBindPose
function SendSkeleton
function SendSkeletonToToolForSetup
function SetupMeshes
function SetupNodes
function UpdateEnableHaptics
Protected Functions Documentation
function OnNodeCreated
Called upon node creation.
Parameters:
p_Node
function OnNodeSetup
function UpdateNames
function UpdateNodesAndChainsNames
The documentation for this class was generated from the following file api/unity-plugin/Scripts/Skeletons/Skeleton.cs