TopDown Engine  v3.6
MoreMountains.TopDownEngine.CharacterRagdollOnDeath Class Reference

Add this to a character and it'll trigger its MMRagdoller to ragdoll on death More...

Inheritance diagram for MoreMountains.TopDownEngine.CharacterRagdollOnDeath:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Member Functions

virtual void ResetRagdoll ()
 

Public Attributes

MMRagdoller Ragdoller
 The MMRagdoller for this character. More...
 
List< GameObject > ObjectsToDisableOnDeath
 A list of optional objects to disable on death. More...
 
List< MonoBehaviour > MonosToDisableOnDeath
 A list of optional monos to disable on death. More...
 
float ForceMultiplier = 10000f
 the force by which the impact will be multiplied More...
 
bool RagdollButton
 A test button to trigger the ragdoll from the inspector. More...
 
bool ResetRagdollButton
 A test button to reset the ragdoll from the inspector. More...
 

Protected Member Functions

virtual void Start ()
 On Awake we initialize our component More...
 
virtual void Initialization ()
 Grabs our health and controller More...
 
virtual void GrabHealth ()
 
virtual void OnDeath ()
 When we get a OnDeath event, we ragdoll More...
 
virtual void OnRevive ()
 
virtual void Ragdoll ()
 Disables the specified objects and monos and triggers the ragdoll More...
 
virtual void OnDestroy ()
 OnDestroy we stop listening to OnDeath events More...
 

Protected Attributes

TopDownController _controller
 
Health _health
 
Transform _initialParent
 
Vector3 _initialPosition
 
Quaternion _initialRotation
 
Character _character
 

Detailed Description

Add this to a character and it'll trigger its MMRagdoller to ragdoll on death

Member Function Documentation

◆ GrabHealth()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.GrabHealth ( )
protectedvirtual

◆ Initialization()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Initialization ( )
protectedvirtual

Grabs our health and controller

◆ OnDeath()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnDeath ( )
protectedvirtual

When we get a OnDeath event, we ragdoll

◆ OnDestroy()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnDestroy ( )
protectedvirtual

OnDestroy we stop listening to OnDeath events

◆ OnRevive()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.OnRevive ( )
protectedvirtual

◆ Ragdoll()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Ragdoll ( )
protectedvirtual

Disables the specified objects and monos and triggers the ragdoll

◆ ResetRagdoll()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ResetRagdoll ( )
virtual

◆ Start()

virtual void MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Start ( )
protectedvirtual

On Awake we initialize our component

Member Data Documentation

◆ _character

Character MoreMountains.TopDownEngine.CharacterRagdollOnDeath._character
protected

◆ _controller

TopDownController MoreMountains.TopDownEngine.CharacterRagdollOnDeath._controller
protected

◆ _health

Health MoreMountains.TopDownEngine.CharacterRagdollOnDeath._health
protected

◆ _initialParent

Transform MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialParent
protected

◆ _initialPosition

Vector3 MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialPosition
protected

◆ _initialRotation

Quaternion MoreMountains.TopDownEngine.CharacterRagdollOnDeath._initialRotation
protected

◆ ForceMultiplier

float MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ForceMultiplier = 10000f

the force by which the impact will be multiplied

◆ MonosToDisableOnDeath

List<MonoBehaviour> MoreMountains.TopDownEngine.CharacterRagdollOnDeath.MonosToDisableOnDeath

A list of optional monos to disable on death.

◆ ObjectsToDisableOnDeath

List<GameObject> MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ObjectsToDisableOnDeath

A list of optional objects to disable on death.

◆ RagdollButton

bool MoreMountains.TopDownEngine.CharacterRagdollOnDeath.RagdollButton

A test button to trigger the ragdoll from the inspector.

◆ Ragdoller

MMRagdoller MoreMountains.TopDownEngine.CharacterRagdollOnDeath.Ragdoller

The MMRagdoller for this character.

◆ ResetRagdollButton

bool MoreMountains.TopDownEngine.CharacterRagdollOnDeath.ResetRagdollButton

A test button to reset the ragdoll from the inspector.


The documentation for this class was generated from the following file: