WallJumping Class
A component class that adds the ability to jump off of walls while in the air.
Constructor
WallJumping
-
wallJumpRightImpulseX
-
wallJumpRightImpulseY
-
wallDetectorRightRay
Parameters:
-
wallJumpRightImpulseX
NumberThe x component of the wall jump impulse. This impulse is for jumping off of walls detected on the left side, the opposite variant is calculated automatically.
-
wallJumpRightImpulseY
NumberThe y component of the wall jump impulse. This impulse is for jumping off of walls detected on the left side, the opposite variant is calculated automatically.
-
wallDetectorRightRay
RayA ray that will be used to detect walls. The beginning position of the ray should be defined relatively to the position of the entity. The ray is for detecting walls on the right side, the left variant is calculated automatically.
Item Index
Methods
getWallDetectorRightRay
()
Ray | Null
Returns:
getWallJumpRightImpulse
-
vector
Parameters:
-
vector
Vector2DVector to which the impulse will be copied.
setWallDetectorRightRay
-
wallDetectorRightRay
Parameters:
-
wallDetectorRightRay
RayA ray that will be used to detect walls. The beginning position of the ray should be defined relatively to the position of the entity. The ray is for detecting walls on the right side, the left variant is calculated automatically.
setWallJumpRightImpulse
-
x
-
y
Parameters:
-
x
NumberThe x component of the wall jump impulse. This impulse is for jumping off of walls detected on the left side, the opposite variant is calculated automatically.
-
y
NumberThe y component of the wall jump impulse. This impulse is for jumping off of walls detected on the left side, the opposite variant is calculated automatically.