Jump to content

Collision callbacks on static surfaces


Recommended Posts

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
Link to comment

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
Link to comment
×
×
  • Create New...