Skip to content

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

bool Manus.Skeletons.Skeleton.debugAnimatedSkeleton;

variable debugColliders

bool Manus.Skeletons.Skeleton.debugColliders;

variable enableHaptics

bool Manus.Skeletons.Skeleton.enableHaptics;

variable isLocalPlayer

bool Manus.Skeletons.Skeleton.isLocalPlayer;

variable onDataApplied

OnDataApplied Manus.Skeletons.Skeleton.onDataApplied;

variable sessionId

uint? Manus.Skeletons.Skeleton.sessionId;

variable skeletonData

SkeletonData Manus.Skeletons.Skeleton.skeletonData;

variable sklSetupIdx

uint? Manus.Skeletons.Skeleton.sklSetupIdx;

Public Functions Documentation

function AllocateChains

inline bool Manus::Skeletons::Skeleton::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

inline void Manus::Skeletons::Skeleton::ContinueAnimating () 

function LoadSkeleton

inline void Manus::Skeletons::Skeleton::LoadSkeleton () 

function OnDataApplied

delegate void Manus::Skeletons::Skeleton::OnDataApplied () 

function PrepareSkeleton

inline bool Manus::Skeletons::Skeleton::PrepareSkeleton () 

function ReSetupNodeTransforms

inline void Manus::Skeletons::Skeleton::ReSetupNodeTransforms () 

function ResetSkeletonData

inline void Manus::Skeletons::Skeleton::ResetSkeletonData () 

function ResetToBindPose

inline void Manus::Skeletons::Skeleton::ResetToBindPose (
    bool p_AlsoResetScale=false
) 

function SendSkeleton

inline void Manus::Skeletons::Skeleton::SendSkeleton () 

function SendSkeletonToToolForSetup

inline void Manus::Skeletons::Skeleton::SendSkeletonToToolForSetup () 

function SetupMeshes

inline List< MeshSetup > Manus::Skeletons::Skeleton::SetupMeshes () 

function SetupNodes

inline void Manus::Skeletons::Skeleton::SetupNodes () 

function UpdateEnableHaptics

inline void Manus::Skeletons::Skeleton::UpdateEnableHaptics () 

Protected Functions Documentation

function OnNodeCreated

Called upon node creation.

inline virtual void Manus::Skeletons::Skeleton::OnNodeCreated (
    Node p_Node
) 

Parameters:

  • p_Node

function OnNodeSetup

inline virtual void Manus::Skeletons::Skeleton::OnNodeSetup () 

function UpdateNames

inline virtual void Manus::Skeletons::Skeleton::UpdateNames () 

function UpdateNodesAndChainsNames

inline void Manus::Skeletons::Skeleton::UpdateNodesAndChainsNames () 

The documentation for this class was generated from the following file api/unity-plugin/Scripts/Skeletons/Skeleton.cs