Tanoda
Leap.Unity.Movement Struct Reference

Public Member Functions

Pose ToPose ()
 
 Movement (Vector3 velocity)
 Constructs a linear Movement involving no rotation. More...
 
 Movement (Vector3 velocity, Vector3 angularVelocity)
 Constructs a Movement with a specified linear velocity and an angular velocity. More...
 
 Movement (Pose fromPose, Pose toPose, float dt=1f)
 Returns the Movement necessary to go from Pose p0 to Pose p1 in dt seconds. You can ignore the time parameter if you wish simply to store delta positions and angle-axis vector rotations. More...
 
void Integrate (Vector3 linearAcceleration, float deltaTime)
 Discretely integrates this Movement's velocity by a linear acceleration over deltaTime. More...
 
void Integrate (Vector3 linearAcceleration, Vector3 angularAcceleration, float deltaTime)
 Discretely integrates this Movement's velocity and angular velocity by both a linear acceleration term and an angular acceleration term and a deltaTime. More...
 

Static Public Member Functions

static Movement operator* (Movement movement, float multiplier)
 
static Movement operator/ (Movement movement, float divisor)
 
static Movement operator+ (Movement movement0, Movement movement1)
 

Public Attributes

Vector3 velocity
 The linear velocity of this Movement. More...
 
Vector3 angularVelocity
 Angular velocity expressed as an angle-axis vector with angle equal to the length of the vector in degrees. More...
 

Static Public Attributes

static readonly Movement identity = new Movement()
 

Properties

Movement inverse [get]
 

Detailed Description

Definition at line 13 of file Movement.cs.

Constructor & Destructor Documentation

◆ Movement() [1/3]

Leap.Unity.Movement.Movement ( Vector3  velocity)

Constructs a linear Movement involving no rotation.

Definition at line 55 of file Movement.cs.

◆ Movement() [2/3]

Leap.Unity.Movement.Movement ( Vector3  velocity,
Vector3  angularVelocity 
)

Constructs a Movement with a specified linear velocity and an angular velocity.

Definition at line 63 of file Movement.cs.

◆ Movement() [3/3]

Leap.Unity.Movement.Movement ( Pose  fromPose,
Pose  toPose,
float  dt = 1f 
)

Returns the Movement necessary to go from Pose p0 to Pose p1 in dt seconds. You can ignore the time parameter if you wish simply to store delta positions and angle-axis vector rotations.

Definition at line 73 of file Movement.cs.

Member Function Documentation

◆ Integrate() [1/2]

void Leap.Unity.Movement.Integrate ( Vector3  linearAcceleration,
float  deltaTime 
)

Discretely integrates this Movement's velocity by a linear acceleration over deltaTime.

Definition at line 87 of file Movement.cs.

◆ Integrate() [2/2]

void Leap.Unity.Movement.Integrate ( Vector3  linearAcceleration,
Vector3  angularAcceleration,
float  deltaTime 
)

Discretely integrates this Movement's velocity and angular velocity by both a linear acceleration term and an angular acceleration term and a deltaTime.

Definition at line 96 of file Movement.cs.

◆ operator*()

static Movement Leap.Unity.Movement.operator* ( Movement  movement,
float  multiplier 
)
static

Definition at line 32 of file Movement.cs.

◆ operator+()

static Movement Leap.Unity.Movement.operator+ ( Movement  movement0,
Movement  movement1 
)
static

Definition at line 47 of file Movement.cs.

◆ operator/()

static Movement Leap.Unity.Movement.operator/ ( Movement  movement,
float  divisor 
)
static

Definition at line 37 of file Movement.cs.

◆ ToPose()

Pose Leap.Unity.Movement.ToPose ( )

Definition at line 41 of file Movement.cs.

Member Data Documentation

◆ angularVelocity

Vector3 Leap.Unity.Movement.angularVelocity

Angular velocity expressed as an angle-axis vector with angle equal to the length of the vector in degrees.

Definition at line 24 of file Movement.cs.

◆ identity

readonly Movement Leap.Unity.Movement.identity = new Movement()
static

Definition at line 26 of file Movement.cs.

◆ velocity

Vector3 Leap.Unity.Movement.velocity

The linear velocity of this Movement.

Definition at line 18 of file Movement.cs.

Property Documentation

◆ inverse

Movement Leap.Unity.Movement.inverse
get

Definition at line 28 of file Movement.cs.


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