[][src]Enum newton::collision::Collision

pub enum Collision<'a> {
    Cuboid(Cuboid<'a>),
    UserMesh(UserMesh<'a>),
    Sphere(Sphere<'a>),
    Cylinder(Cylinder<'a>),
    ChamferCylinder(ChamferCylinder<'a>),
    Capsule(Capsule<'a>),
    Cone(Cone<'a>),
    Compound(Compound<'a>),
    FracturedCompound(FracturedCompound<'a>),
    Tree(Tree<'a>),
    Scene(Scene<'a>),
    ConvexHull(ConvexHull<'a>),
    Null(Null<'a>),
    DeformableSolid(DeformableSolid<'a>),
    MassSpringDamperSystem(MassSpringDamperSystem<'a>),
    HeightFieldF32(HeightField<'a, f32>),
    HeightFieldU16(HeightField<'a, u16>),
}

Enum grouping all collision types.

Variants

Cuboid(Cuboid<'a>)UserMesh(UserMesh<'a>)Sphere(Sphere<'a>)Cylinder(Cylinder<'a>)ChamferCylinder(ChamferCylinder<'a>)Capsule(Capsule<'a>)Cone(Cone<'a>)Compound(Compound<'a>)FracturedCompound(FracturedCompound<'a>)Tree(Tree<'a>)Scene(Scene<'a>)ConvexHull(ConvexHull<'a>)Null(Null<'a>)DeformableSolid(DeformableSolid<'a>)MassSpringDamperSystem(MassSpringDamperSystem<'a>)HeightFieldF32(HeightField<'a, f32>)HeightFieldU16(HeightField<'a, u16>)

Methods

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

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

pub fn create_instance(col: &Self) -> Self[src]

pub fn cuboid(self) -> Option<Cuboid<'a>>[src]

pub fn user_mesh(self) -> Option<UserMesh<'a>>[src]

pub fn sphere(self) -> Option<Sphere<'a>>[src]

pub fn cylinder(self) -> Option<Cylinder<'a>>[src]

pub fn chamfer_cylinder(self) -> Option<ChamferCylinder<'a>>[src]

pub fn capsule(self) -> Option<Capsule<'a>>[src]

pub fn cone(self) -> Option<Cone<'a>>[src]

pub fn compound(self) -> Option<Compound<'a>>[src]

pub fn fractured_compound(self) -> Option<FracturedCompound<'a>>[src]

pub fn tree(self) -> Option<Tree<'a>>[src]

pub fn scene(self) -> Option<Scene<'a>>[src]

pub fn convex_hull(self) -> Option<ConvexHull<'a>>[src]

pub fn null(self) -> Option<Null<'a>>[src]

pub fn deformable_solid(self) -> Option<DeformableSolid<'a>>[src]

pub fn mass_spring_damper_system(self) -> Option<MassSpringDamperSystem<'a>>[src]

pub fn is_cuboid(&self) -> bool[src]

pub fn is_user_mesh(&self) -> bool[src]

pub fn is_sphere(&self) -> bool[src]

pub fn is_cylinder(&self) -> bool[src]

pub fn is_chamfer_cylinder(&self) -> bool[src]

pub fn is_capsule(&self) -> bool[src]

pub fn is_cone(&self) -> bool[src]

pub fn is_compound(&self) -> bool[src]

pub fn is_fractured_compound(&self) -> bool[src]

pub fn is_tree(&self) -> bool[src]

pub fn is_scene(&self) -> bool[src]

pub fn is_convex_hull(&self) -> bool[src]

pub fn is_null(&self) -> bool[src]

pub fn is_deformable_solid(&self) -> bool[src]

pub fn is_mass_spring_damper_system(&self) -> bool[src]

pub fn height_field_f32(self) -> Option<HeightField<'a, f32>>[src]

pub fn height_field_u16(self) -> Option<HeightField<'a, u16>>[src]

pub fn is_height_field_f32(&self) -> bool[src]

pub fn is_height_field_u16(&self) -> bool[src]

Trait Implementations

impl<'a> NewtonCollision for Collision<'a>[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]

fn is_static(&self) -> bool[src]

fn is_convex(&self) -> bool[src]

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

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 Collision<'a>[src]

impl<'a> AsHandle for Collision<'a>[src]

impl<'a> PartialEq<Collision<'a>> for Collision<'a>[src]

impl<'a> From<HeightField<'a, f32>> for Collision<'a>[src]

impl<'a> From<HeightField<'a, u16>> for Collision<'a>[src]

impl<'a> From<Cuboid<'a>> for Collision<'a>[src]

impl<'a> From<UserMesh<'a>> for Collision<'a>[src]

impl<'a> From<Sphere<'a>> for Collision<'a>[src]

impl<'a> From<Cylinder<'a>> for Collision<'a>[src]

impl<'a> From<ChamferCylinder<'a>> for Collision<'a>[src]

impl<'a> From<Capsule<'a>> for Collision<'a>[src]

impl<'a> From<Cone<'a>> for Collision<'a>[src]

impl<'a> From<Compound<'a>> for Collision<'a>[src]

impl<'a> From<FracturedCompound<'a>> for Collision<'a>[src]

impl<'a> From<Tree<'a>> for Collision<'a>[src]

impl<'a> From<Scene<'a>> for Collision<'a>[src]

impl<'a> From<ConvexHull<'a>> for Collision<'a>[src]

impl<'a> From<Null<'a>> for Collision<'a>[src]

impl<'a> From<DeformableSolid<'a>> for Collision<'a>[src]

impl<'a> From<MassSpringDamperSystem<'a>> for Collision<'a>[src]

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

Auto Trait Implementations

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

impl<'a> !Sync for Collision<'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]