Seesaw platforms: Difference between revisions
(Created page with "{{object_infobox_2 |title= Seesaw Platform |image= STROOP- Seesaw_Platform_BitDW.png |group= Surface |group2 = N/A |tangibility= |draw= |gravity= |friction= |buoyancy= |intera...") |
m (MMMMMMMMMMMMM moved page Seesaw Platforms to Seesaw platforms: Sentence casify the wiki) |
||
(One intermediate revision by one other user not shown) | |||
Line 42: | Line 42: | ||
==References== | ==References== | ||
[https://github.com/n64decomp/sm64/blob/a7c423cb43b94a759d100e989ccf7c104d757aa1/src/game/behaviors/seesaw_platform.inc.c Behavior File] | [https://github.com/n64decomp/sm64/blob/a7c423cb43b94a759d100e989ccf7c104d757aa1/src/game/behaviors/seesaw_platform.inc.c Behavior File] | ||
{{Template:Objects}} | |||
[[Category:Objects]] | [[Category:Objects]] |
Latest revision as of 01:50, 11 May 2021
Seesaw Platform | |
Technical Constants | |
Object Group | Surface |
Actor Group | N/A |
Seesaw Platforms are objects that Mario can stand on which move downward around a pivot while he is on them. When Mario gets off them, they rotate back to the horizontal position. There are 7 varieties throughout the game.
Behavior
If the seesaw platform is the S-shaped one in Bowser in the Sky, then its collision distance is increased to 2000 since it is larger. The seesaw platform’s facing pitch angle is increased by the value of its pitch velocity every frame it is updated. If its pitch velocity is above 10 units/frame, a sound is played. If Mario is on the platform, a rotation value is stored as the distance from the platform object to Mario times the cosine of the difference between the angle to Mario and the yaw angle. If the platform is decelerating, this rotation value is multiplied by .04, otherwise it is multiplied by .02. The value of the platform’s pitch velocity is then increased by the rotation value every frame. The platform’s pitch velocity cannot be less than -50 units/frame or greater than 50 units/frame. If Mario is not on the object, it oscillates back toward the horizontal.
Gallery
References
|