![]() | RagdollAnimator Class |
Namespace: Candlelight.Physics
public abstract class RagdollAnimator : MonoBehaviour, IHierarchy<Transform>
The RagdollAnimator type exposes the following members.
Name | Description | |
---|---|---|
![]() | BindRagdoll |
Binds the ragdoll to this RagdollAnimator. Its hierarchy will be flattened when it is bound.
|
![]() | FixedUpdate |
Synchronize the ragdoll and animated hierarchies as needed.
|
![]() | GetAllNodes |
Gets all nodes.
|
![]() | GetAnimatedBody |
For the specified RagdollPart, get the corresponding Transform in
the rendered hierarchy.
|
![]() | GetEstimatedLocalBounds |
Gets the estimated Bounds of this RagdollAnimator 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.
|
![]() | GetGroundingBodies |
Gets a set of animated bodies and associated minimum strength values. By default, if any one of these parts
falls below its minimum strength while contacting a ground layer then the full hierarchy will enter a
ragdoll state.
|
![]() | GetOrientationParameters |
Gets the orientation parameters.
|
![]() | GetRagdollPart |
For the specified Transform, get the corresponding RagdollPart in
the physical hierarchy.
|
![]() | IgnoreColliderForGrounding |
Ignores the specified collider when performing the grounding raycast or when testing if grounding bodies are
grounded.
|
![]() | IgnoreCollisionsBetweenAnimatorAndRagdoll |
Ignores the collisions between the animated and ragdoll hierarchies based on the specified value.
|
![]() | IsPartDisconnected |
Determines whether the specified animated body has been disconnected, either because its joint broken or
because a joint on one of its parents broke off.
|
![]() | LateUpdate |
Perform final actions for the frame.
|
![]() | MapHierarchies |
Map the animator and ragdoll hierarchies to each other.
|
![]() | OnDestroy |
Raises the destroy event.
|
![]() | OnDisable |
Raises the disable event.
|
![]() | OnEnable |
Raises the enable event.
|
![]() | PrepareHierarchies |
Prepares the hierarchy mappings and regenerates the list of colliders to ignore.
|
![]() | SetBodyShouldAnimateWhenDisconnected |
Indicate that the specified animated body should continue to animate when one of its ancestors disconnects.
|
![]() | SetGroundingBodies |
Sets a table of animated bodies and associated minimum strength values. By default, if any one of these
parts falls below its minimum strength while contacting a ground layer then the full hierarchy will enter a
ragdoll state.
|
![]() | SetOrientationParameters |
Sets the orientation parameters.
|
![]() | Start |
Start this instance.
|
![]() | UnbindRagdoll |
Unbinds the ragdoll currently bound to this instance, returning its hierarchy to the state it was in when
bound.
|
![]() | UnignoreColliderForGrounding |
Unignores the specified collider when performing the grounding raycast or when testing if grounding bodies
are grounded.
|
![]() | Update |
Emit error messages if avatar or controller change at run-time and preprocess animator if necessary.
|
Name | Description | |
---|---|---|
![]() | GetPrefabName |
Gets the name of the prefab associated with the supplied instance.
(Defined by ObjectX.) |
![]() | OpenReferencePage |
Opens a reference web page generated for the specified object.
(Defined by ObjectX.) |
Name | Description | |
---|---|---|
![]() | Animator |
Gets the animator.
|
![]() | FullHierarchyBlendProgress |
Gets the normalized progress of this instance blending out of full-hierarchy ragdoll.
|
![]() | FullHierarchyBlendTime |
Gets or sets the number of seconds to take when blending from full-hierarchy ragdoll back to animation data.
|
![]() | FullHierarchyRagdollParameter |
Gets or sets a AnimatorControllerParameterType.Bool parameter specifying that the
full hierarchy is ragdoll.
|
![]() | GroundSurfaces |
Gets or sets the ground surfaces. This value is used to reposition the animated hierarchy when the it exits
full-hierarchy ragdoll.
|
![]() ![]() | IsSilent |
Gets or sets a value indicating whether instances of this class should emit debug messages. This value
should only be set to when performing automated tests.
|
![]() | OnEnterFullHierarchyRagdoll |
Gets the event when full hierarchy ragdoll was entered (i.e. all parts just now have a strength of 0).
|
![]() | OnExitFullHierarchyRagdoll |
Gets the event when full hierarchy ragdoll was exited (i.e. all parts had a strength of 0 and at least one
is now greater than 0).
|
![]() | OnPostprocessAnimatedHierarchy |
Gets the event right before the animated hierarchy is finalized for rendering.
|
![]() | OnPostprocessInputPose |
Gets the event when the input pose has been set up, before it has been applied to the ragdoll. Subscribe
to this event for applying procedural animation normally applied in LateUpdate() (e.g., custom IK solvers).
|
![]() | OnPreprocessAnimatedHierarchy |
Gets the event before the Animator has been updated. Subscribe to this event if
you need to revert changes to non-animated transforms made in the previous frame. For example, if you are
using Final IK, you would insert a call to FixTransforms() here if necessary.
|
![]() | OrientationParameterUpdateMode |
Gets or sets the orientation parameter update mode.
|
![]() | Ragdoll |
Gets the ragdoll being animated by this instance.
|
![]() | Root |
Gets the root.
|
![]() | StrengthUpdateMode |
Gets or sets the strength update mode to use when applying Strength values to the
ragdoll.
|
![]() ![]() | ZeroVelocityThreshold |
Gets the Vector3.sqrMagnitude value below which a part's velocity is considered to
be 0.
|
Name | Description | |
---|---|---|
![]() | OnEnterRagdollState |
Occurs when a RagdollPart enters a ragdoll state (i.e. its strength just now became 0).
|
![]() | OnExitRagdollState |
Occurs when a RagdollPart exits a ragdoll state (i.e. its strength was 0 and is now greater
than 0).
|