[][src]Struct myelin_engine::simulation::world::builder::NphysicsWorldBuilder

pub struct NphysicsWorldBuilder { /* fields omitted */ }

Builder for the NphysicsWorld.

Methods

impl NphysicsWorldBuilder[src]

pub fn new() -> NphysicsWorldBuilder[src]

Creates a new builder by calling NphysicsWorldBuilder::default().

pub fn timestep(&mut self, timestep: f64)[src]

Sets the simulation timestep

pub fn rotation_translator(
    &mut self,
    rotation_translator: Box<dyn NphysicsRotationTranslator>
)
[src]

Sets the rotation translator used between the engine and nphysics.

pub fn build(self) -> NphysicsWorld[src]

Builds the NphysicsWorld.

Trait Implementations

impl Default for NphysicsWorldBuilder[src]

impl Debug for NphysicsWorldBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Same for T

type Output = T

Should always be Self

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

impl<T> Downcast for T where
    T: Any