b3dIsCharacterOnWall

Checks if character touching wall (1=wall contact 0=no wall, vertical surface normalY<0.5 = >60deg). Takes characterHandle (character controller from b3dCreateCharacterController). Returns 1 if character touching vertical surface (wall detected, normal mostly horizontal), 0 if no wall contact or only touching floors/ceilings, 0 on error (invalid character).

3D Graphics

Parameters & Returns

Parameters

characterHandle Int

Returns

Int

Quick Summary

Checks if character touching wall (1=wall contact 0=no wall, vertical surface normalY<0.5 = >60deg). Takes characterHandle (character controller from b3dCreateCharacterController). Returns 1 if character touching vertical surface (wall detected, normal mostly horizontal), 0 if no wall contact or only touching floors/ceilings, 0 on error (invalid character).

Technical Exegesis...

Checks if character touching wall (1=wall contact 0=no wall, vertical surface normalY<0.5 = >60deg). Takes characterHandle (character controller from b3dCreateCharacterController). Returns 1 if character touching vertical surface (wall detected, normal mostly horizontal), 0 if no wall contact or only touching floors/ceilings, 0 on error (invalid character). Iterates active contacts from CharacterVirtual, checks contact normals for verticality. Read-only wall detection query.

Example

Example.bam
; No example implemented yet