WallGrappling Class
A component class that adds the ability to grapple vertical surfaces.
Constructor
WallGrappling
(
-
[slidingSpeed]
Parameters:
-
[slidingSpeed]
Number optionalThis 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.
Item Index
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
NumberThis value will be used to set the vertical velocity of a grappling entity.