[][src]Struct newton::joint::Ball

pub struct Ball<'a> { /* fields omitted */ }

The movement and rotation of a body is limited to a given solid angle, and angle respectively.

Methods

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

pub unsafe fn from_raw(raw: *const NewtonJoint, owned: bool) -> Self[src]

pub fn release(self)[src]

Forgets about this body. It will be freed along the world If you want to reference the object later, you should call into_handle instead.

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

pub fn set_callback<F>(&self, callback: F) where
    F: FnMut(Ball, Duration) + Send + 'static, 
[src]

pub fn create<'b, 'c, 'd, B, C>(
    newton: &'d Newton,
    pivot: Vec3,
    child: &'b B,
    parent: Option<&'c C>,
    name: Option<&'static str>
) -> Self where
    'b: 'a,
    'c: 'a,
    'd: 'b + 'c,
    B: NewtonBody,
    C: NewtonBody
[src]

pub fn set_cone_limits(
    &self,
    pin: Vec3,
    max_cone_angle: f32,
    max_twist_angle: f32
)
[src]

pub fn joint_angle(&self) -> Vec3[src]

pub fn joint_force(&self) -> Vec3[src]

pub fn joint_omega(&self) -> Vec3[src]

Trait Implementations

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

impl<'a> AsHandle for Ball<'a>[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]

Returns the pair of bodies that are linked by this joint

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> Drop for Ball<'a>[src]

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

Auto Trait Implementations

impl<'a> !Send for Ball<'a>

impl<'a> !Sync for Ball<'a>

Blanket Implementations

impl<T> From for T[src]

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

impl<T, U> TryFrom for T where
    T: From<U>, 
[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> 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> Any for T where
    T: 'static + ?Sized
[src]