[][src]Struct rapier3d::dynamics::RigidBodyBuilder

pub struct RigidBodyBuilder { /* fields omitted */ }

A builder for rigid-bodies.

Implementations

impl RigidBodyBuilder[src]

pub fn new(body_status: BodyStatus) -> Self[src]

Initialize a new builder for a rigid body which is either static, dynamic, or kinematic.

pub fn new_static() -> Self[src]

Initializes the builder of a new static rigid body.

pub fn new_kinematic() -> Self[src]

Initializes the builder of a new kinematic rigid body.

pub fn new_dynamic() -> Self[src]

Initializes the builder of a new dynamic rigid body.

pub fn translation(self, x: f32, y: f32, z: f32) -> Self[src]

Sets the initial translation of the rigid-body to be created.

pub fn rotation(self, angle: AngVector<f32>) -> Self[src]

Sets the initial orientation of the rigid-body to be created.

pub fn position(self, pos: Isometry<f32>) -> Self[src]

Sets the initial position (translation and orientation) of the rigid-body to be created.

pub fn linvel(self, x: f32, y: f32, z: f32) -> Self[src]

Sets the initial linear velocity of the rigid-body to be created.

pub fn angvel(self, angvel: AngVector<f32>) -> Self[src]

Sets the initial angular velocity of the rigid-body to be created.

pub fn can_sleep(self, can_sleep: bool) -> Self[src]

Sets whether or not the rigid-body to be created can sleep if it reaches a dynamic equilibrium.

pub fn build(&self) -> RigidBody[src]

Build a new rigid-body with the parameters configured with this builder.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,