Table of Contents

Struct BodyVelocity

Namespace
BepuPhysics
Assembly
BepuPhysics.dll

Linear and angular velocity for a body.

public struct BodyVelocity
Inherited Members

Constructors

BodyVelocity(Vector3)

Creates a new set of body velocities. Angular velocity is set to zero.

public BodyVelocity(Vector3 linear)

Parameters

linear Vector3

Linear velocity to use for the body.

BodyVelocity(Vector3, Vector3)

Creates a new set of body velocities.

public BodyVelocity(Vector3 linear, Vector3 angular)

Parameters

linear Vector3

Linear velocity to use for the body.

angular Vector3

Angular velocity to use for the body.

Fields

Angular

Angular velocity associated with the body.

public Vector3 Angular

Field Value

Vector3

Linear

Linear velocity associated with the body.

public Vector3 Linear

Field Value

Vector3

Methods

ToString()

Returns a string representing the BodyVelocity as "Linear, Angular".

public override string ToString()

Returns

string

String representing the BodyVelocity.

Operators

implicit operator BodyVelocity(Vector3)

Creates a body velocity by treating a Vector3 as a linear velocity. Angular velocity is set to zero.

public static implicit operator BodyVelocity(Vector3 linearVelocity)

Parameters

linearVelocity Vector3

Linear velocity to use in the body velocity.

Returns

BodyVelocity

implicit operator BodyVelocity((Vector3 linearVelocity, Vector3 angularVelocity))

Creates a body velocity from a tuple of linear and angular velocities..

public static implicit operator BodyVelocity((Vector3 linearVelocity, Vector3 angularVelocity) velocities)

Parameters

velocities (Vector3 linearVelocity, Vector3 angularVelocity)

Velocities to use in the body velocity.

Returns

BodyVelocity