Angle Detection with Collision detecting

Blitz3D Forums/Blitz3D Programming/Angle Detection with Collision detecting

Lilprog(Posted 2004) [#1]
Is there a way when collision detecting to figure out the angle of the polygon or mesh that you are hitting? For example, in my baseball game i want custom homerun fences. It would be nice to have the fence as one mesh, and when the ball comes in contact with the mesh to be able to obtain the angle of the mesh at the point of contact inorder to calculate the bounce off of the wall.

Is this possible?

Rob


ZombieWoof(Posted 2004) [#2]
CollisionEntity
CollisionNX/NY/NZ (the normal of the collision, saves you a few steps going from mesh to angle of impact, etc)
CollisionX/Y/Z

and many other collision info accessor functions :)

ever thought of using a physics package for the ball ??


Lilprog(Posted 2004) [#3]
What type of physics package, didn't realize they exist?

Rob


ZombieWoof(Posted 2004) [#4]
Tokamak has been talked about a lot here, with many examples here in the forums.