Advertisement

triangle's edges vs sphere collision response vector

Started by June 14, 2003 02:07 PM
1 comment, last by DirectXXX 21 years, 8 months ago
I can done collision and response when projected centre on sphere on polygon plane is InsidePolygon. But im confused how to do it with triangl''s edges. i can have the nearest point on the triangle to a sphere centre. my sphere is moving with a certain velocity. I need a reflection or response vector.??
3D Side-Scroller game demo Project-X2 "playable"Lashkar: A 3D Game & Simulation Project demo @ lashkar.berlios.de
Just take the vector from the edge''s position to the sphere''s position normalize it and consider it like the normal of the surface of a polygon.
The edge is like a sphere with and radius of zero, so the normal of it is just the normalized vector from it''s position to the centerof the spere.
Advertisement
After waiting days on reply I already figured it out. However thanx.
3D Side-Scroller game demo Project-X2 "playable"Lashkar: A 3D Game & Simulation Project demo @ lashkar.berlios.de

This topic is closed to new replies.

Advertisement