b3dCharacterCanGrabLedge

Detects grabbable ledge ahead (1=ledge found 0=no ledge, requires movement, checks wall+top surface 0.5-2.5 units above). Takes characterHandle (character controller from b3dCreateCharacterController), lookAheadDist (forward raycast distance to check for wall/ledge). Returns 1 if grabbable ledge found (wall + top surface within grab range 0.5-2.5 units above character center), 0 if no ledge (no wall, no top surface, or out of range), 0 on error.

3D Graphics

Parameters & Returns

Parameters

characterHandle Int
lookAheadDist Double

Returns

Int

Quick Summary

Detects grabbable ledge ahead (1=ledge found 0=no ledge, requires movement, checks wall+top surface 0.5-2.5 units above). Takes characterHandle (character controller from b3dCreateCharacterController), lookAheadDist (forward raycast distance to check for wall/ledge). Returns 1 if grabbable ledge found (wall + top surface within grab range 0.5-2.5 units above character center), 0 if no ledge (no wall, no top surface, or out of range), 0 on error.

Technical Exegesis...

Detects grabbable ledge ahead (1=ledge found 0=no ledge, requires movement, checks wall+top surface 0.5-2.5 units above). Takes characterHandle (character controller from b3dCreateCharacterController), lookAheadDist (forward raycast distance to check for wall/ledge). Returns 1 if grabbable ledge found (wall + top surface within grab range 0.5-2.5 units above character center), 0 if no ledge (no wall, no top surface, or out of range), 0 on error.

Example

Example.bam
; No example implemented yet