[][src]Struct rg3d_physics::Physics

pub struct Physics { /* fields omitted */ }

Implementations

impl Physics[src]

pub fn new() -> Physics[src]

pub fn add_body(&mut self, body: RigidBody) -> Handle<RigidBody>[src]

pub fn remove_body(&mut self, body_handle: Handle<RigidBody>)[src]

pub fn add_static_geometry(
    &mut self,
    static_geom: StaticGeometry
) -> Handle<StaticGeometry>
[src]

pub fn remove_static_geometry(&mut self, static_geom: Handle<StaticGeometry>)[src]

pub fn borrow_body(&self, handle: Handle<RigidBody>) -> &RigidBody[src]

pub fn borrow_body_mut(&mut self, handle: Handle<RigidBody>) -> &mut RigidBody[src]

pub fn is_valid_body_handle(&self, handle: Handle<RigidBody>) -> bool[src]

pub fn step(&mut self, delta_time: f32)[src]

pub fn ray_cast(
    &self,
    ray: &Ray,
    options: RayCastOptions,
    result: &mut Vec<RayCastResult>
) -> bool
[src]

Trait Implementations

impl Clone for Physics[src]

impl Debug for Physics[src]

impl Default for Physics[src]

impl Visit for Physics[src]

Auto Trait Implementations

impl !RefUnwindSafe for Physics

impl Send for Physics

impl !Sync for Physics

impl Unpin for Physics

impl UnwindSafe for Physics

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>, 

impl<T> Visit for T where
    T: FieldData + 'static, 
[src]