3d object physics

Blitz3D Forums/Blitz3D Beginners Area/3d object physics

Craig H. Nisbet(Posted 2004) [#1]
Does anyone have any dirt simple code to move a 3d ball around and have it bounce off other objects in the environment, I guess like a pinball machine, and be able to move up ramps and jump? I'm not quite sure how to code the bounces when an object colides with another object.


Jeppe Nielsen(Posted 2004) [#2]
Check this out:
Ball rolling example


LostCargo(Posted 2004) [#3]
craig if u are looking for something more complex as well there are a few variations on the verlet collision detection. This can allow you to do pseudo mesh physics with a number of balls. The idea is that if you have 8 balls you tell them to stay a set distance away from each other. This will creata cube. When you drop the cube or throw it at something, and one of the cubes hits the surface, it will bounce, and the other balls will try and adjust by moving away appropriately. Its pretty impressive. If you feel more confident once you figure out the ball collision thing you should check it out. it is a bit more advanced but i am sure it will inspire you to push your limits.