|
ActionDirector
1.0.0
The action director's cut for rapid actions integration
|
Add force to a rigidbody (physic) More...
Public Member Functions | |
| override void | Run () |
Public Attributes | |
| Vector3 | force |
| Vector3 | force2d |
| ForceMode | mode |
| ForceMode2D | mode2d |
| Rigidbody | body = null |
| Rigidbody2D | body2d = null |
| bool | is2d |
Add force to a rigidbody (physic)
This action use the unity RigidBody.AddForce method. For more details (3d), Please see https://docs.unity3d.com/ScriptReference/Rigidbody.AddForce.html For more details (2d), Please see https://docs.unity3d.com/ScriptReference/Rigidbody2D.AddForce.html
| Rigidbody ActionDirector.ActionAddForce.body = null |
The 3d ridigbody to affect
| Rigidbody2D ActionDirector.ActionAddForce.body2d = null |
The 2d ridigbody to affect
| Vector3 ActionDirector.ActionAddForce.force |
Force vector in world coordinates.
| Vector3 ActionDirector.ActionAddForce.force2d |
Force vector in world coordinates.
| bool ActionDirector.ActionAddForce.is2d |
Are we using 2d or 3d physic
| ForceMode ActionDirector.ActionAddForce.mode |
The method used to apply the specified force.
| ForceMode2D ActionDirector.ActionAddForce.mode2d |
The method used to apply the specified force.