[−][src]Struct newton::collision::HeightField
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]
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
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 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 HeightField<'a, f32>[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> FromHandle<'a> for HeightField<'a, u16>[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 HeightField<'a, u16>[src]
fn into_handle(self, newton: &Newton) -> Handle[src]
impl<'a> IntoHandle for HeightField<'a, f32>[src]
fn into_handle(self, newton: &Newton) -> Handle[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]
fn eq(&self, other: &HeightField<'a, T>) -> bool[src]
fn ne(&self, other: &HeightField<'a, T>) -> bool[src]
impl<'a> From<HeightField<'a, f32>> for Collision<'a>[src]
fn from(col: HeightField<'a, f32>) -> Self[src]
impl<'a> From<HeightField<'a, u16>> for Collision<'a>[src]
fn from(col: HeightField<'a, u16>) -> Self[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]
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,