Log inGet started
Package

Footing.component

This package holds more than this page lists. See all of its files in its world.

README.md

Footing

This component ensures that a walking body remains correctly positioned on the painted terrain, even when the engine's CharacterController might cause it to slide or fall through steep ground. It attaches to an entity alongside a CharacterController (e.g., a player's avatar). After the controller moves the body, Footing checks the body's vertical position against the terrain's ground height (obtained from painterly.painterly.current().groundAt). If the feet are too far below the ground, it lifts the body back to a safe height, preventing it from falling out of the world. This component only corrects the body on the local peer that controls its movement.