API Docs for:
Show:

WallGrappling Class

A component class that adds the ability to grapple vertical surfaces.

Constructor

WallGrappling

(
  • [slidingSpeed]
)

Parameters:

  • [slidingSpeed] Number optional

    This value will be used to set the vertical velocity of a grappling entity. If not provided, it'll default to 0, which means no sliding.

Methods

getSlidingSpeed

() Number

Returns:

Number:

isGrapplingLeft

() Boolean

Returns:

Boolean: Returns true if the entity is grappling a wall on the left side.

isGrapplingRight

() Boolean

Returns:

Boolean: Returns true if the entity is grappling a wall on the right side.

setSlidingSpeed

(
  • slidingSpeed
)

Parameters:

  • slidingSpeed Number

    This value will be used to set the vertical velocity of a grappling entity.