GroundAttacher Component

Attach the entity to the ground when it lands. Useful for platformers with moving platforms. Remove the component to disable the functionality.

Additionally, this component provides the entity with Supportable methods & events.

Example

Crafty.e("2D, Gravity, GroundAttacher")
    .gravity("Platform"); // entity will land on and move with entites that have the "Platform" component