Surface: Difference between revisions

Jump to navigation Jump to search
53 bytes added ,  24 March 2019
m
added more information to reference
(wall hitbox stuff)
m (added more information to reference)
Line 1: Line 1:
{{stub}}
{{stub}}
A '''surface''' or '''triangle''' in Super Mario 64 is a piece of geometry that exerts some kind of force or effect on Mario. Every triangle falls into one of three categories: a floor triangle, a wall triangle, or a ceiling triangle. However, a triangle does not store what category it is. Instead, its category is determined based on the y component of the triangle's [[wikipedia:normal vector|normal vector]]<ref>https://www.youtube.com/watch?v=UnU7DJXiMAQ</ref>. If y component > 0.01, then it is a floor. If y component < -0.01, then it is a ceiling. Otherwise, it is a wall.
A '''surface''' or '''triangle''' in Super Mario 64 is a piece of geometry that exerts some kind of force or effect on Mario. Every triangle falls into one of three categories: a floor triangle, a wall triangle, or a ceiling triangle. However, a triangle does not store what category it is. Instead, its category is determined based on the y component of the triangle's [[wikipedia:normal vector|normal vector]]<ref>[https://www.youtube.com/watch?v=UnU7DJXiMAQ "Walls, Floors, & Ceilings" by UncommentatedPannen]</ref>. If y component > 0.01, then it is a floor. If y component < -0.01, then it is a ceiling. Otherwise, it is a wall.
==Walls==
==Walls==
A triangle is a wall triangle if and only if -0.01 < normal.y < 0.01.
A triangle is a wall triangle if and only if -0.01 < normal.y < 0.01.
1,021

edits

Navigation menu