API Docs for:
Show:

WallGrapplingSystem Class

This system uses the physics system to determine whether an entity is grappling a wall. For an entity to grapple a wall, it needs to push against a physics entity with a 'wall' collision category and a vertical surface. The grappling entity needs to be a dynamic physics object, additionally it requires the GroundedMovement and WallGrappling components to be present. An entity can only grapple a wall while it's in the air. This system triggers animations on entities. A 'grappleLeft' animation is played if an entity is grappling a wall on the left, similarily, for the right side a 'grappleRight' animation will be played.

Constructor

WallGrapplingSystem

(
  • entitySystemManager
  • physicsSystem
  • collisionMasks
)

Parameters:

  • entitySystemManager Manager

    The entity system manager whose entities this system will be working on.

  • physicsSystem PhysicsSystem
  • collisionMasks Object

    An object holding bit masks used for determining collision categories.