Click or drag to resize
ArbitraryRagdoll Class
A component used for configuring and maintaining references to an arbitrary ragdoll hierarchy.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Candlelight.PhysicsRagdoll
            Candlelight.PhysicsArbitraryRagdoll
              Candlelight.PhysicsTetrapodRagdoll

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public class ArbitraryRagdoll : Ragdoll, 
	IArbitraryChainsMutable<RagdollPart, RagdollPartChain>, IArbitraryChains<RagdollPart, RagdollPartChain>

The ArbitraryRagdoll type exposes the following members.

Methods
  NameDescription
Public methodConnectAndMapParts
Connect all parts defined on this instance and map symmetry as needed.
(Overrides RagdollConnectAndMapParts(DictionaryString, String).)
Public methodDefinesArbitraryChain
Gets a value indicating whether or not this instance defines an arbitrary RagdollPartChain with the specified identifier.
Public methodGetAllNodes
Gets all nodes in this ArbitraryRagdoll's definition, with the most basal parts sorted first.
(Overrides RagdollGetAllNodes(ListRagdollPart).)
Protected methodGetArbitraryChains
Gets the arbitrary chains.
Public methodGetArbitraryChains(DictionaryString, RagdollPartChain)
Gets the arbitrary RagdollPartChains.
Public methodGetEstimatedLocalBounds
Gets the estimated Bounds of this Ragdoll in its current configuration, in the space of its Transform component. It will encapsulate all of the Transforms of the hierarchy's nodes, as well as all of the currently active SkinnedMeshRenderers and MeshRenderers.
(Inherited from Ragdoll.)
Protected methodOnPartsChanged
Raises an event when one or more parts changed, which reconnects and remaps parts as needed, and redistributes the hierarchy mass.
(Inherited from Ragdoll.)
Protected methodRebuildChain
Rebuilds the specified chain to ensure its bodies are connected.
(Inherited from Ragdoll.)
Protected methodRedistributeHierarchyMass
Redistributes the mass specified on this object to each of the parts, based on their current proportional contribution to the whole hierarchy.
(Inherited from Ragdoll.)
Public methodSetArbitraryChains(DictionaryString, RagdollPartChain)
Sets the arbitrary chains.
Protected methodSetArbitraryChains(IdentifiableRagdollPartChain)
Sets the arbitrary chains.
Public methodSetHierarchyAngularDampingProfile
Sets the shape of the angular damping profile for all RagdollParts in the definition. Their values will be the specified profile multiplied by the hierarchy's total mass.
(Inherited from Ragdoll.)
Public methodSetHierarchyAngularPositionForceProfile
Sets the shape of the angular position force profile for all RagdollParts in the definition. Their values will be the specified profile multiplied by the hierarchy's total mass.
(Inherited from Ragdoll.)
Public methodSetHierarchyAngularVelocityForceProfile
Sets the shape of the angular velocity force profile for all RagdollParts in the definition. Their values will be the specified profile multiplied by the hierarchy's total mass.
(Inherited from Ragdoll.)
Public methodSetHierarchyLinearDampingProfile
Sets the shape of the linear damping profile for all RagdollParts in the definition. Their values will be the specified profile multiplied by the hierarchy's total mass.
(Inherited from Ragdoll.)
Public methodSetHierarchyLinearPositionForceProfile
Sets the shape of the linear position force profile for all RagdollParts in the definition. Their values will be the specified profile multiplied by the hierarchy's total mass.
(Inherited from Ragdoll.)
Public methodSetHierarchyLinearVelocityForceProfile
Sets the shape of the linear velocity force profile for all RagdollParts in the definition. Their values will be the specified profile multiplied by the hierarchy's total mass.
(Inherited from Ragdoll.)
Public methodSetHierarchyPhysicsMaterial
Sets the hierarchy physics material. This method will assign the Collider.sharedMaterial property on each Collider referenced in this Ragdoll's definition.
(Inherited from Ragdoll.)
Protected methodStart
Cache the bindpose.
(Inherited from Ragdoll.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetPrefabName
Gets the name of the prefab associated with the supplied instance.
(Defined by ObjectX.)
Public Extension MethodOpenReferencePage
Opens a reference web page generated for the specified object.
(Defined by ObjectX.)
Top
Properties
  NameDescription
Public propertyHierarchyMass

Gets or sets the hierarchy mass.

Setting this value will redistribute mass to all PhysicalBody nodes in this Ragdoll's definition, based on their current proportional distribution. For example, if the definition contains two parts, one with mass 5.0 and another with mass 10.0, setting this property to a value of 9.0 would change their masses to 3.0 and 6.0, respectively.

This property will enforce a minimum value of 1.0.

(Inherited from Ragdoll.)
Public propertyRoot
Gets the root.
(Inherited from Ragdoll.)
Top
See Also