Jump to content

Collision callbacks on static surfaces


Recommended Posts

Posted (edited)

In my game I need something that moves through the world and can collide with static surfaces but does not simulate physics and is move manually through code. other game engines refer to this as a kinematic collider.

This is normally done to create player controllers which need to have their physics implemented manually.

C++ examples would be much appreciated.

Edited by david.warford
Posted

Hello,

You can try using for this BodyDummy. This body is unmoving and non-interacting. In the attached example material ball moves under the influence of gravity and resolve collisions. In the editor you need to add the body and shape to the material ball.image.png

AppWorldLogic.cpp AppWorldLogic.h

  • Like 1
Posted

Wow thank you this works perfectly! although I still don't get a callback this does suit my needs.

×
×
  • Create New...