ActionDirector  1.0.0
The action director's cut for rapid actions integration
ActionDirector.ActionSetVelocity Class Reference

Set a velocity vector to a rigidbody (physic) More...

Inheritance diagram for ActionDirector.ActionSetVelocity:

Public Types

enum  VelocityType { value, minimum, maximum }
 

Public Member Functions

override void Run ()
 

Public Attributes

Vector3 velocity
 
Vector2 velocity2d
 
VelocityType velocityType
 
bool affectX = true
 
bool affectY = true
 
bool affectZ = true
 
Rigidbody body = null
 
Rigidbody2D body2d = null
 
bool is2d
 

Detailed Description

Set a velocity vector to a rigidbody (physic)

This action use the unity RigidBody.velocity property. The type of velocity have different effects: value will set the velocity to the wanted velocity. Minimum will use the velocity if the body is lower than the wanted velocity. Maximum will use the velocity if the body is higher than the wanted velocity. For more details (3d), Please see https://docs.unity3d.com/ScriptReference/Rigidbody-velocity.html For more details (2d), Please see https://docs.unity3d.com/ScriptReference/Rigidbody2D-velocity.html

Member Data Documentation

bool ActionDirector.ActionSetVelocity.affectX = true

Use the X value of the velocity?

bool ActionDirector.ActionSetVelocity.affectY = true

Use the Y value of the velocity?

bool ActionDirector.ActionSetVelocity.affectZ = true

Use the Z value of the velocity?

Rigidbody ActionDirector.ActionSetVelocity.body = null

The 3d ridigbody to affect

Rigidbody2D ActionDirector.ActionSetVelocity.body2d = null

The 2d ridigbody to affect

bool ActionDirector.ActionSetVelocity.is2d

Are we using 2d or 3d physic

Vector3 ActionDirector.ActionSetVelocity.velocity

The new velocity of the rigid body

Vector2 ActionDirector.ActionSetVelocity.velocity2d

The new velocity of the rigid body


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