Frictional Games Forum (read-only)
How is collision calculated? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: HPL1 Engine (https://www.frictionalgames.com/forum/forum-28.html)
+--- Thread: How is collision calculated? (/thread-14872.html)



How is collision calculated? - ole92 - 04-17-2012

Hello there,

I'm really impressed with the collision detection and general physics in penumbra.
Could someone tell me how it's done, especially the part where I'm holding something with the left mouse button, and try to collide it with a wall.

I'm making my own game, and having some difficulty, when objects that I'm holding, can go through other objects.
This only happens when I'm holding them...

Thanks


RE: How is collision calculated? - Cranky Old Man - 04-17-2012

(Actually, objects in Amnesia can still go through other objects if they're pushed hard enough, so you might need to improve on their code a bit.)


RE: How is collision calculated? - iPlayer - 04-17-2012

They use NewtonGameDynamics an add force and torque to the picked body, i think. The collision is handle by Newton Game Dynamics.