Struct libsm64::LevelTriangle [−][src]
#[repr(C)]pub struct LevelTriangle {
pub kind: Surface,
pub force: i16,
pub terrain: Terrain,
pub vertices: (Point3<i16>, Point3<i16>, Point3<i16>),
}
Expand description
A level triangle, the main building block of the collision geometry
Fields
kind: Surface
The type of surface
force: i16
terrain: Terrain
The type of terrain
vertices: (Point3<i16>, Point3<i16>, Point3<i16>)
The verticies of the triangle. Super Mario 64 using integer math for its collision detection expect to have to scale your vertexes appropriately to use them for level geometry
Note: The order of the verticies is important, Mario will only collide with the front face of the geometry
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LevelTriangle
impl Send for LevelTriangle
impl Sync for LevelTriangle
impl Unpin for LevelTriangle
impl UnwindSafe for LevelTriangle
Blanket Implementations
Mutably borrows from an owned value. Read more