[−][src]Trait newton::body::NewtonBody
Implementation of most of the NewtonBody API.
Required methods
fn as_raw(&self) -> *const NewtonBody
Provided methods
fn matrix(&self) -> Mat4
fn set_continuous(&self, cont: bool)
fn is_continuous(&self) -> bool
fn set_matrix(&self, matrix: Mat4)
fn position(&self) -> Vec3
fn into_raw(self) -> *const NewtonBody where
Self: Sized,
Self: Sized,
fn velocity(&self) -> Vec3
fn aabb(&self) -> (Vec3, Vec3)
fn sleep_state(&self) -> SleepState
fn set_sleep_state(&self, state: SleepState)
fn set_active(&self)
fn set_sleeping(&self)
fn set_force(&self, force: Vec3)
fn set_collision<C: NewtonCollision>(&self, collision: C)
fn collision(&self) -> Collision
fn name(&self) -> Option<&'static str>
fn mass(&self) -> (f32, Vec3)
fn set_mass<C: NewtonCollision>(&self, mass: f32, collision: &C)
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut(Body) + Send + 'static,
F: FnMut(Body) + Send + 'static,
fn set_transform_callback<F>(&self, callback: F) where
F: FnMut(Body, Mat4, usize) + Send + 'static,
F: FnMut(Body, Mat4, usize) + Send + 'static,
ⓘImportant traits for Joints<'a>fn joints(&self) -> Joints
ⓘImportant traits for Joints<'a>
fn set_force_and_torque_callback<F>(&self, callback: F) where
F: FnMut(Body, Duration, usize) + Send + 'static,
F: FnMut(Body, Duration, usize) + Send + 'static,
Implementors
impl<'a> NewtonBody for Body<'a>[src]
fn as_raw(&self) -> *const NewtonBody[src]
fn matrix(&self) -> Mat4[src]
fn set_continuous(&self, cont: bool)[src]
fn is_continuous(&self) -> bool[src]
fn set_matrix(&self, matrix: Mat4)[src]
fn position(&self) -> Vec3[src]
fn into_raw(self) -> *const NewtonBody where
Self: Sized, [src]
Self: Sized,
fn velocity(&self) -> Vec3[src]
fn aabb(&self) -> (Vec3, Vec3)[src]
fn sleep_state(&self) -> SleepState[src]
fn set_sleep_state(&self, state: SleepState)[src]
fn set_active(&self)[src]
fn set_sleeping(&self)[src]
fn set_force(&self, force: Vec3)[src]
fn set_collision<C: NewtonCollision>(&self, collision: C)[src]
fn collision(&self) -> Collision[src]
fn name(&self) -> Option<&'static str>[src]
fn mass(&self) -> (f32, Vec3)[src]
fn set_mass<C: NewtonCollision>(&self, mass: f32, collision: &C)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut(Body) + Send + 'static, [src]
F: FnMut(Body) + Send + 'static,
fn set_transform_callback<F>(&self, callback: F) where
F: FnMut(Body, Mat4, usize) + Send + 'static, [src]
F: FnMut(Body, Mat4, usize) + Send + 'static,
ⓘImportant traits for Joints<'a>fn joints(&self) -> Joints[src]
ⓘImportant traits for Joints<'a>
fn set_force_and_torque_callback<F>(&self, callback: F) where
F: FnMut(Body, Duration, usize) + Send + 'static, [src]
F: FnMut(Body, Duration, usize) + Send + 'static,
impl<'a> NewtonBody for DynamicBody<'a>[src]
fn as_raw(&self) -> *const NewtonBody[src]
fn matrix(&self) -> Mat4[src]
fn set_continuous(&self, cont: bool)[src]
fn is_continuous(&self) -> bool[src]
fn set_matrix(&self, matrix: Mat4)[src]
fn position(&self) -> Vec3[src]
fn into_raw(self) -> *const NewtonBody where
Self: Sized, [src]
Self: Sized,
fn velocity(&self) -> Vec3[src]
fn aabb(&self) -> (Vec3, Vec3)[src]
fn sleep_state(&self) -> SleepState[src]
fn set_sleep_state(&self, state: SleepState)[src]
fn set_active(&self)[src]
fn set_sleeping(&self)[src]
fn set_force(&self, force: Vec3)[src]
fn set_collision<C: NewtonCollision>(&self, collision: C)[src]
fn collision(&self) -> Collision[src]
fn name(&self) -> Option<&'static str>[src]
fn mass(&self) -> (f32, Vec3)[src]
fn set_mass<C: NewtonCollision>(&self, mass: f32, collision: &C)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut(Body) + Send + 'static, [src]
F: FnMut(Body) + Send + 'static,
fn set_transform_callback<F>(&self, callback: F) where
F: FnMut(Body, Mat4, usize) + Send + 'static, [src]
F: FnMut(Body, Mat4, usize) + Send + 'static,
ⓘImportant traits for Joints<'a>fn joints(&self) -> Joints[src]
ⓘImportant traits for Joints<'a>
fn set_force_and_torque_callback<F>(&self, callback: F) where
F: FnMut(Body, Duration, usize) + Send + 'static, [src]
F: FnMut(Body, Duration, usize) + Send + 'static,
impl<'a> NewtonBody for KinematicBody<'a>[src]
fn as_raw(&self) -> *const NewtonBody[src]
fn matrix(&self) -> Mat4[src]
fn set_continuous(&self, cont: bool)[src]
fn is_continuous(&self) -> bool[src]
fn set_matrix(&self, matrix: Mat4)[src]
fn position(&self) -> Vec3[src]
fn into_raw(self) -> *const NewtonBody where
Self: Sized, [src]
Self: Sized,
fn velocity(&self) -> Vec3[src]
fn aabb(&self) -> (Vec3, Vec3)[src]
fn sleep_state(&self) -> SleepState[src]
fn set_sleep_state(&self, state: SleepState)[src]
fn set_active(&self)[src]
fn set_sleeping(&self)[src]
fn set_force(&self, force: Vec3)[src]
fn set_collision<C: NewtonCollision>(&self, collision: C)[src]
fn collision(&self) -> Collision[src]
fn name(&self) -> Option<&'static str>[src]
fn mass(&self) -> (f32, Vec3)[src]
fn set_mass<C: NewtonCollision>(&self, mass: f32, collision: &C)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut(Body) + Send + 'static, [src]
F: FnMut(Body) + Send + 'static,
fn set_transform_callback<F>(&self, callback: F) where
F: FnMut(Body, Mat4, usize) + Send + 'static, [src]
F: FnMut(Body, Mat4, usize) + Send + 'static,
ⓘImportant traits for Joints<'a>fn joints(&self) -> Joints[src]
ⓘImportant traits for Joints<'a>
fn set_force_and_torque_callback<F>(&self, callback: F) where
F: FnMut(Body, Duration, usize) + Send + 'static, [src]
F: FnMut(Body, Duration, usize) + Send + 'static,