[][src]Trait newton::joint::NewtonJoint

pub trait NewtonJoint {
    fn as_raw(&self) -> *const NewtonJoint;

    fn into_raw(self) -> *const NewtonJoint
    where
        Self: Sized
, { ... }
fn name(&self) -> Option<&'static str> { ... }
fn bodies<'a: 'b, 'b>(&'a self) -> (Body<'b>, Option<Body<'b>>) { ... }
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
, { ... } }

NewtonJoint API functions.

Required methods

fn as_raw(&self) -> *const NewtonJoint

Loading content...

Provided methods

fn into_raw(self) -> *const NewtonJoint where
    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, 

Loading content...

Implementors

impl<'a> NewtonJoint for Joint<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

impl<'a> NewtonJoint for Ball<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

impl<'a> NewtonJoint for Corkscrew<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

impl<'a> NewtonJoint for Hinge<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

impl<'a> NewtonJoint for Slider<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

impl<'a> NewtonJoint for Universal<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

impl<'a> NewtonJoint for UpVector<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

impl<'a> NewtonJoint for UserJoint<'a>[src]

fn into_raw(self) -> *const NewtonJoint where
    Self: Sized
[src]

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]

Loading content...