Skip to content

API > MLBoneDynamics


MLBoneDynamics⚓︎

MLBoneDynamics inherits from Behaviour

MLBoneDynamics apply physics to character's bones or joints. The component must attach to the root game object of the avatar.

Members⚓︎

Methods⚓︎

Name Description
MLBoneDynamics.SetMultiThread(value) Method Enable/disable multithread to improve physics simulation performace. Default is true.
MLBoneDynamics.SetWeight(w) Method Control how physics blend with existing animation.
MLBoneDynamics.UpdateParameters() Method Update parameters at runtime, call this funtion after modifing parameters.

Inherited Members⚓︎

Inherited Properties⚓︎

Name Description
MLBoneDynamics.enabledProperty Enabled Behaviours are Updated, disabled Behaviours are not.
MLBoneDynamics.isActiveAndEnabledProperty Has the Behaviour had active and enabled called?
MLBoneDynamics.gameObjectPropertyReadonly Property The game object this component is attached to. A component is always attached to a game object.
MLBoneDynamics.tagPropertyReadonly Property The tag of this game object.
MLBoneDynamics.transformPropertyReadonly Property The Transform attached to this GameObject.
MLBoneDynamics.hideFlagsProperty Should the object be hidden, saved with the Scene or modifiable by the user?
MLBoneDynamics.nameProperty The name of the object.

Inherited Methods⚓︎

Name Description
MLBoneDynamics.BroadcastMessage(methodName, parameter=nil)Method Calls the method named methodName on every Lua Script in this game object or any of its children.
MLBoneDynamics.CompareTag(tag)Method Is this game object tagged with tag ?
MLBoneDynamics.GetAllLuaScripts()Method Returns an array of all Lua scripts that attached to the game object.
MLBoneDynamics.GetComponent(type)Method Returns the component of Type type if the game object has one attached, nil if it doesn't.
MLBoneDynamics.GetComponentInChildren(t)Method Returns the component of Type type in the GameObject or any of its children using depth first search.
MLBoneDynamics.GetComponentInParent(t)Method Returns the component of Type type in the GameObject or any of its parents.
MLBoneDynamics.GetComponents(type)Method Returns all components of Type type in the GameObject.
MLBoneDynamics.GetComponentsInChildren(t)Method Returns all components of Type type in the GameObject or any of its children.
MLBoneDynamics.GetComponentsInParent(t)Method Returns all components of Type type in the GameObject or any of its parents.
MLBoneDynamics.SendMessage(methodName, value=nil)Method Calls the method named methodName on every Lua Script in this game object.
MLBoneDynamics.SendMessageUpwards(methodName, value=nil)Method Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour.
MLBoneDynamics.TryGetComponent(type)Method Gets the component of the specified type, if it exists.
MLBoneDynamics.GetInstanceID()Method Returns the instance id of the object.