[−][src]Trait newton::joint::NewtonJoint
NewtonJoint API functions.
Required methods
fn as_raw(&self) -> *const NewtonJoint
Provided methods
fn into_raw(self) -> *const NewtonJoint where
Self: Sized,
Self: Sized,
fn name(&self) -> Option<&'static str>
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)
Returns the pair of bodies that are linked by this joint
fn collision_state(&self) -> CollisionState
fn set_collision_state(&self, state: CollisionState)
fn is_active(&self) -> bool
fn stiffness(&self) -> f32
fn set_stiffness(&self, stiff: f32)
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static,
F: FnMut() + Send + 'static,
Implementors
impl<'a> NewtonJoint for Joint<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,
impl<'a> NewtonJoint for Ball<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,
impl<'a> NewtonJoint for Corkscrew<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,
impl<'a> NewtonJoint for Hinge<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,
impl<'a> NewtonJoint for Slider<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,
impl<'a> NewtonJoint for Universal<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,
impl<'a> NewtonJoint for UpVector<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,
impl<'a> NewtonJoint for UserJoint<'a>[src]
fn as_raw(&self) -> *const NewtonJoint[src]
fn into_raw(self) -> *const NewtonJoint where
Self: Sized, [src]
Self: Sized,
fn name(&self) -> Option<&'static str>[src]
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>)[src]
fn collision_state(&self) -> CollisionState[src]
fn set_collision_state(&self, state: CollisionState)[src]
fn is_active(&self) -> bool[src]
fn stiffness(&self) -> f32[src]
fn set_stiffness(&self, stiff: f32)[src]
fn set_destroy_callback<F>(&self, callback: F) where
F: FnMut() + Send + 'static, [src]
F: FnMut() + Send + 'static,