Hmh
I don't really know what to do with the links you've replied.
So in this example:
// set window properties
SetWindowTitle( "Simple 3D Physics" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetScissor(0,0,0,0)
CreateObjectBox( 1, 10,10,10 )
CreateObjectBox( 2, 5,5,5 )
SetObjectPosition( 2, 5,5,0 )
SetCameraPosition( 1, 0,30,-80 )
SetCameraLookAt( 1, 0,10,0, 0 )
do
Print( ScreenFPS() )
Sync()
loop
There is no way to detect that those boxes collide?
I was hoping for a https://www.appgamekit.com/documentation/Reference/Sprite/GetPhysicsCollision.htm but for 3D :')
I tested 2 static meshes, that doesn't work indeed. That's a pain, because I don't want them to be affected by gravity or other physics things (like weight or so)
Thanks
Edit: I was Googling, 2 things would be very easy:
-Using a raycast from the center of my object, in this case, every object must fit a cylinder.
-Using spheres, collision of spheres is simple.
But ideally, I would also have box collision, but I cannot think of a method to do that if an object is rotated.