Method GenerateImpulse
GenerateImpulse()
Broadcast the Impulse Signal onto the appropriate channels, with default velocity = (0, -1, 0), and a default position which is this transform's location.
Declaration
public void GenerateImpulse()
GenerateImpulse(Vector3)
Legacy API: Please use GenerateImpulseWithVelocity() instead.
Broadcast the Impulse Signal onto the appropriate channels, using
a custom impact velocity, and this transfom's position.
Declaration
public void GenerateImpulse(Vector3 velocity)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | velocity | The impact magnitude and direction |
GenerateImpulse(float)
Legacy API: Please use GenerateImpulseWithForce() instead.
Broadcast the Impulse Signal onto the appropriate channels, using
a custom impact force, with the standard direction, and this transfom's position.
Declaration
public void GenerateImpulse(float force)
Parameters
Type | Name | Description |
---|---|---|
float | force | The impact magnitude. 1 is normal |