Advice on Implementing Physics in C++ with Panda3D

Hello

I’m now working on a project where I need to implement physics using Panda3D in C++. I’ve been exploring the available documentation and resources, but I’m looking for some suggestions on how to work on this task effectively.

I’m interested in below topics-

  1. What physics engines or libraries are compatible with Panda3D for C++ development?
  2. Are there any recommended frameworks or methodologies for integrating physics into C++ projects with Panda3D?
  3. Any tips or insights from developers who have experience with C++ coding in Panda3D for implementing physics would be greatly appreciated.

I’m excited to hear about your recommendations.

Thanks in advance for your help!

Best regards,
nathaniel

https://docs.panda3d.org/1.10/python/programming/collision-detection/index

https://docs.panda3d.org/1.10/python/programming/physics/index

You can use the collision detection and do all the physics yourself. There is a builtin solution for some things and there is “Bullet” support.

Or you can do everything yourself and use panda as a rendering engine that merely displays your state.

Any of the integrated physics engines are useable from C++ as well.

You can also use any other physics engine that Panda3D doesn’t have specific support for, but you’d be responsible yourself for synchronizing the positions of the Panda3D nodes with the physics object in the physics engine. However, that does enable you to use other physics engines like Jolt, which is arguably superior to Bullet.

Hello@Max12345, rdb

Thanks for your reply . Thanks for sharing this collision detection
https://docs.panda3d.org/1.10/python/programming/collision-detection/index

https://docs.panda3d.org/1.10/python/programming/physics/index

Thank you
nathaniel