Skip to main content
gamedev.net
🔒 Locked

project vector on plane

Started by KingSnake Apr 13, 2002 at 4:52 AM 0 replies 600+ views
Original Post
KingSnake
KingSnake
hello. In order to make collision reaction i want to project the speed vector on the colliding plane (to implement sliding) Plane is defined by A, B, C, D coefficients as usual. Vector is defined as an origin point, three angles to rotate this point and an absolute length. the result should be a vector with the origin point on the plane, angles and length adjusted properly. Pseudo code welcome! Thanks, Michele.
BloodScourge
BloodScourge
Not sure... but :

P = projected vector
V = vector to project
N = normal to the plane
Then you have : |P| = |V|*sin(N,V)


[edited by - Bloodscourge on April 13, 2002 9:10:58 AM]
I know that I don't know nothing... Operation Ivy

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.