[−][src]Struct newton::collision::Sphere
Methods
impl<'a> Sphere<'a>[src]
pub unsafe fn from_raw(raw: *const NewtonCollision, owned: bool) -> Self[src]
pub fn create_instance(col: &Self) -> 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> Sphere<'a>[src]
Trait Implementations
impl<'a> ConvexShape for Sphere<'a>[src]
impl<'a> NewtonCollision for Sphere<'a>[src]
fn as_raw(&self) -> *const NewtonCollision[src]
fn set_scale(&self, scale: Vec3)[src]
fn scale(&self) -> Vec3[src]
fn params(&self) -> Params[src]
fn for_each_polygon<F>(&self, matrix: Mat4, callback: F) where
F: FnMut(&[f32], c_int), [src]
F: FnMut(&[f32], c_int),
fn is_static(&self) -> bool[src]
fn is_convex(&self) -> bool[src]
fn into_raw(self) -> *const NewtonCollision where
Self: Sized, [src]
Self: Sized,
fn matrix(&self) -> Mat4[src]
fn set_matrix(&self, matrix: Mat4)[src]
fn set_user_id(&self, id: u32)[src]
fn user_id(&self) -> u32[src]
impl<'a> FromHandle<'a> for Sphere<'a>[src]
fn from_handle(newton: &'a Newton, handle: Handle) -> Option<Self>[src]
fn from_handle_owned(newton: &'a mut Newton, handle: Handle) -> Option<Self>[src]
impl<'a> IntoHandle for Sphere<'a>[src]
fn into_handle(self, newton: &Newton) -> Handle[src]
impl<'a> AsHandle for Sphere<'a>[src]
impl<'a> PartialEq<Sphere<'a>> for Sphere<'a>[src]
impl<'a> From<Sphere<'a>> for Collision<'a>[src]
impl<'a> Drop for Sphere<'a>[src]
impl<'a> Eq for Sphere<'a>[src]
impl<'a> Debug for Sphere<'a>[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>, [src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,