Jump to content
  • Advertisement
Sign in to follow this  
AquaMacker

How to get Lookat Vector ?

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

[font=verdana,geneva,sans-serif]

HI~~~[/font]

[font=verdana,geneva,sans-serif]

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

[font=verdana,geneva,sans-serif]

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

[font=verdana,geneva,sans-serif]

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;
D3DXVECTOR3 v???;
D3DXVECTOR3 vLookAt;

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...
http://www.gamedev.net/topic/617621-what-is-this-position/

I NEED The Book !!!

Share this post


Link to post
Share on other sites
Advertisement

[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]Thanks....[/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!