b3dCharacterWallJump

Performs wall jump (jumps up at jumpSpeed, pushes away from wall at pushAwaySpeed horizontally). Takes characterHandle (character controller from b3dCreateCharacterController), jumpSpeed (upward velocity in units/sec for jump), pushAwaySpeed (horizontal push velocity away from wall in units/sec). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

characterHandle Int
jumpSpeed Double
pushAwaySpeed Double

Returns

Void

Quick Summary

Performs wall jump (jumps up at jumpSpeed, pushes away from wall at pushAwaySpeed horizontally). Takes characterHandle (character controller from b3dCreateCharacterController), jumpSpeed (upward velocity in units/sec for jump), pushAwaySpeed (horizontal push velocity away from wall in units/sec). Returns nothing.

Technical Exegesis...

Performs wall jump (jumps up at jumpSpeed, pushes away from wall at pushAwaySpeed horizontally). Takes characterHandle (character controller from b3dCreateCharacterController), jumpSpeed (upward velocity in units/sec for jump), pushAwaySpeed (horizontal push velocity away from wall in units/sec). Returns nothing. Finds wall contact, calculates push direction perpendicular to wall, sets vertical velocity to jumpSpeed, adds horizontal impulse away from wall. Use for wall jump mechanics in platformers.

Example

Example.bam
; No example implemented yet