Bob-omb: Difference between revisions
Jump to navigation
Jump to search
m (added to enemies category) |
Jongyon7192p (talk | contribs) (help) Tags: Mobile edit Mobile web edit |
||
Line 21: | Line 21: | ||
}} | }} | ||
'''Bob-ombs'''<!--or '''Bombombs'''--> are enemies in SM64. When they see Mario, their fuse lights and they start chasing him. After their fuse ends, they explode, creating an explosion object. | '''Bob-ombs'''<!--or '''Bombombs'''--> are enemies in SM64. When they see Mario, their fuse lights and they start chasing him. After their fuse ends, they explode, creating an explosion object. | ||
bobomb walk into a wall make it a fast boi: | |||
Tyler, in discord: "@Kaztalek and others who were thinking there were a couple speed vectors being added were basically spot on. When testing for wall collisions on Bob-ombs, the game first adds the speed to the current position and uses that point in the collision calculations. The algorithm pushes the bob-omb outward from the wall if a collision occurs, so if it's already against the wall it effectively adds the component of the bobomb's speed that's tangent to the wall. Regardless of whether a collision occurs or not, the Bob-omb's position is incremented by its speed at a later point as well. Finally, since the point used for the collision calculation is only written to the Bob-omb's position if a collision occurs, the double speed increment doesn't happen in the open field." | |||
==Bloated Bob-omb== | ==Bloated Bob-omb== |