Archived

This topic is now archived and is closed to further replies.

what side of a line is my vector on?

This topic is 5620 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone, given a right vector and a forward vector and a velocity vector, how can i tell if my velocity vector lays on the same side as the forward vector or other side (side meaning split between the right vector) this is for 3-dim space velocity vec not same side (-1) ..\...| ...\..|../ velocity vector is on same side (1) ....\.|./ .....\|/ ......|-------> forward vector ......| ......| ......V right vector plane (really an imaginary 2d plane that is perpendicular to the forward vector) Im doing this to find out if my speed is positive or negative. Thanks to anyone who can help! Sincerely, Scott

Share this post


Link to post
Share on other sites
just do a dot product with the forward vector. if it''s negative, you''re going backwards. if it''s positive, you''re going forward.

a2k

Share this post


Link to post
Share on other sites