[][src]Struct newton::collision::HeightField

pub struct HeightField<'a, T: Elevation> { /* fields omitted */ }

Methods

impl<'a, T: Elevation> HeightField<'a, T>[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, T: Elevation> HeightField<'a, T>[src]

pub fn builder() -> ![src]

A more convenient way to build a HeightField collision with default values.

pub fn create(
    newton: &'a Newton,
    width: usize,
    height: usize,
    grid: HeightFieldGrid,
    elevation: &[T],
    attrs: &[i8],
    vert_scale: f32,
    hor_x_scale: f32,
    hor_z_scale: f32
) -> Self
[src]

pub fn set_horizontal_displacement(&self, map: &[u16], scale: f32)[src]

Trait Implementations

impl<'a, T: Elevation> StaticShape for HeightField<'a, T>[src]

impl<'a, T: Elevation> NewtonCollision for HeightField<'a, T>[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 HeightField<'a, f32>[src]

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

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

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

impl<'a, T: Elevation> AsHandle for HeightField<'a, T>[src]

impl<'a, T: PartialEq + Elevation> PartialEq<HeightField<'a, T>> for HeightField<'a, T>[src]

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

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

impl<'a, T: Elevation> Drop for HeightField<'a, T>[src]

impl<'a, T: Debug + Elevation> Debug for HeightField<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !Send for HeightField<'a, T>

impl<'a, T> !Sync for HeightField<'a, T>

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]