Re: Tangent for 3D vectors




<kalaiselvam.p@xxxxxxxxx> wrote in message news:b16b02bc-6d9b-4043-afa7-4ec5ec651931@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear All,

I am developing a 3D car game in C++ using openGL. To calculate the
Ground Velocity, I need the formula to calculate tangent for 3D
vector. I got the tangent for 2D vector from some game samples (i.e.,
Tangent for 2D vector (x,y) = (-y,x)). Please help me to find out the
tangent for 3D vector.

Do you mean the normal?
The crossproduct will give you a vector perpendicular to two other vectors in 3D space.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

.



Relevant Pages

  • Re: YAWP [Lame] (V, 3.0.9b)
    ... Another reason in favor of my suggestion to remove selling from the ... Complete tangent from the thread, but: Eddie, I'm thinking of picking up ...
    (rec.games.roguelike.angband)
  • Re: Video: Pike vs. Los (final spot to nationals)
    ... i saw that this thread was off tangent, ... fix ultimate, especially on thread of an exceptional video. ... criticize a game we all love. ...
    (rec.sport.disc)
  • Re: Plea for Help: Lisp and 3D
    ... >>> There are OpenGL FFIs for CL. ... >> matter a great deal if you're interested in game development, ... canonical OpenGL bindings several times in both c.l.l and c.l.s. ... >> It was not developed in Common Lisp. ...
    (comp.lang.lisp)
  • Re: game development
    ... a functional game. ... Two books that you could learn the basic principles from, ... publisher = "New Riders Publishing ", ... OpenGL. ...
    (comp.programming)
  • Re: Is Direct3D a rip-off of OpenGL?
    ... > mess which is Windows drivers. ... Hopefully OpenGL will slide right in nicely someplace in the back of the ... 3D" API game. ... This, along with the XBox, is the simplest way for Micro$oft ...
    (comp.graphics.api.opengl)