Jump to content
  • Advertisement
Sign in to follow this  

How to get Lookat Vector ?

This topic is 2854 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




I'm Sooooooooooooooooooooooooooooo Beginner about Vector...[/font]


I want to know How to get LookAt Vector.[/font]


Let's see....[/font]

[font=verdana, geneva, sans-serif]float fAngle = 90.0f;[/font]

[font=verdana, geneva, sans-serif]I heard use D3DXVec3TransformCoord()...[/font]

[font="verdana, geneva, sans-serif"]And I coding......[/font]

float fAngle = 90.0f;

D3DXMATRIX mRotation;
D3DXMatrixRotationZ( &mRotation, fAngle );
D3DXVec3TransformCoord( &vLookAt, &v???, &mRotation );

But Don't working wacko.png

v??? is ....I do not know what to put.

Would you tell me Wrong code..please.....

This question is linked...

I NEED The Book !!!

Share this post

Link to post
Share on other sites

[font=verdana,geneva,sans-serif]Thanks very much...[/font]

[font=verdana,geneva,sans-serif]I know my question Category...[/font]


[font=verdana,geneva,sans-serif]I will find a Linear Algebra book.[/font]

[font=verdana,geneva,sans-serif]NOW !!! smile.png[/font] smile.png smile.png

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!