Future Collision and Particle Physics?

grizzley90

24-05-2006 15:30:21

One question about ogrenewt. Can it determine a collision that would happen in the future if i continue at my path and speed? basically detecting future collisions? or collisions if my object was at a certain place in time? Im guessing not???

Im also wondering what the status of particle physics in newton is? It's been a long time since ive been back to ogrenewt and ogre. Id like to know the status.

praetor

24-05-2006 17:23:54

The entire simulation would have to be stepped into the future to determine this. Save the current state, step the simulation into the future to find collisions and thenr reset the simulation state.

walaber

24-05-2006 17:36:47

for one-off tests, you can also use CollisionCollideContinue (iirc) which is a utility function that will give you collision between any 2 moving Collision shapes, given a starting point, velocity, omega, and timestep.

it's basically the function Newton uses internally to calculate collisions, so you know it works great.

you can use the current position and velocity/omega for 2 objects to "predict" if they will collide in the future, assuming their velocity/omega does not change.

grizzley90

24-05-2006 18:27:13

ok. i will try and use that. what about particle physics?

walaber

24-05-2006 19:35:19

currently there is no support for physics-powered particles in Newton. if you just want particles to collide with the world (and do the motion yourself), you can use the raycasting features of Newton... but I'm not sure of the performance hit of casting lots ot rays each frame.