All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Attributes | List of all members
BehaviourFall Class Reference

Blends between two animation clips in a blend tree depending on the height of the ragdoll from the ground. More...

Inheritance diagram for BehaviourFall:
Inheritance graph
[legend]
Collaboration diagram for BehaviourFall:
Collaboration graph
[legend]

Public Attributes

string stateName = "Falling"
 Animation State to crosfade to when this behaviour is activated. More...
 
float transitionDuration = 0.4f
 The duration of crossfading to "State Name". Value is in seconds. More...
 
int layer
 Layer index containing the destination state. If no layer is specified or layer is -1, the first state that is found with the given name or hash will be played. More...
 
float fixedTime
 Start time of the current destination state. Value is in seconds. If no explicit fixedTime is specified or fixedTime value is float.NegativeInfinity, the state will either be played from the start if it's not already playing, or will continue playing from its current time and no transition will happen. More...
 
LayerMask raycastLayers
 The layers that will be raycasted against to find colliding objects. More...
 
string blendParameter = "FallBlend"
 The parameter in the Animator that blends between catch fall and writhe animations. More...
 
float writheHeight = 4f
 The height of the pelvis from the ground at which will blend to writhe animation. More...
 
float writheYVelocity = 1f
 The vertical velocity of the pelvis at which will blend to writhe animation. More...
 
float blendSpeed = 3f
 The speed of blendig between the two falling animations. More...
 
bool canEnd
 If false, this behaviour will never end. More...
 
float minTime = 1.5f
 The minimum time since this behaviour activated before it can end. More...
 
float maxEndVelocity = 0.5f
 If the velocity of the pelvis falls below this value, can end the behaviour. More...
 
PuppetEvent onEnd
 Event triggered when all end conditions are met. More...
 

Additional Inherited Members

- Properties inherited from BehaviourBase
PuppetMaster puppetMaster [get, set]
 Gets the PuppetMaster associated with this behaviour. Returns null while the behaviour is not initiated by the PuppetMaster. More...
 

Detailed Description

Blends between two animation clips in a blend tree depending on the height of the ragdoll from the ground.