Skip to main content

MLBoneDynamics

info

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

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

Inherited Members

Inherited Properties

NameDescription
MLBoneDynamics.enabledEnabled Behaviours are Updated, disabled Behaviours are not.
MLBoneDynamics.isActiveAndEnabledHas the Behaviour had active and enabled called?
MLBoneDynamics.gameObjectThe game object this component is attached to. A component is always attached to a game object.
MLBoneDynamics.tagThe tag of this game object.
MLBoneDynamics.transformThe Transform attached to this GameObject.
MLBoneDynamics.hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
MLBoneDynamics.nameThe name of the object.

Inherited Methods

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