Seesaw platforms: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
(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 (my contribution score is gonna be so high after this)
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]]

Revision as of 18:32, 11 February 2021

Seesaw Platform
STROOP- Seesaw Platform BitDW.png
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

Behavior File