Raycasting - line 455
Raycasting closest not me - line 451 & 125
Object re-use - line 465
I made an effort to stay true to the DynamicCharacterController.cpp source code originally written by the Ammo.js author kripken
There are however some differences such as substituting the closest not me raycasting class with normal raycasting that uses collision group filters instead. But overall I think this character controller is pretty performant.
Atm, the controller will detect when the player collides with something horizontally, but there’s nothing being done with that detection. It could be used for pushing blocks, and other game related logic.