[][src]Struct myelin_engine::simulation::world::NphysicsWorld

pub struct NphysicsWorld { /* fields omitted */ }

An implementation of World that uses nphysics in the background.

Methods

impl NphysicsWorld[src]

pub fn with_timestep(
    timestep: f64,
    rotation_translator: Box<dyn NphysicsRotationTranslator>
) -> Self
[src]

Instantiates a new empty world

Examples

use myelin_engine::prelude::*;
use myelin_engine::simulation::world::{
    rotation_translator::NphysicsRotationTranslatorImpl, NphysicsWorld,
};
use std::sync::{Arc, RwLock};

let rotation_translator = NphysicsRotationTranslatorImpl::default();
let mut world = NphysicsWorld::with_timestep(1.0, Box::new(rotation_translator));

Trait Implementations

impl World for NphysicsWorld[src]

impl Debug for NphysicsWorld[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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut 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> 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