Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Using 3D Maths

Author
Message
Kira
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location:
Posted: 27th May 2008 23:43
sorry but im having a hard time understanding the documentation about 3D maths. I want to know how I could use dbAddVector3 and SetVector3
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 28th May 2008 07:32
You need to use dbMakeVector3() to create your vector3, then set the elements of them with values, then call the dbAddvector3 function, the params you pass are the IDs to the vectors you wish to pass(IDs used when creating them), the last 2 values are the vector IDs you wish to add, so if I want to add vector3 1 and 5 and I want to sotre the result in vector3 10 I'd pass the values ( 10, 1, 5 ). Of course these commands are pretty much pointless in C++ as you can just '#include "D3dx9math.h"' and use the D3DXVECTOR3 struct directly, which has all the basic operators such as add subtract etc. The only issue is that you can't pass these vectors to GDK fnctions directly, you still need to fill a GDK vector with these values then pass it.

Kira
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location:
Posted: 28th May 2008 18:51
is it possible to pivot an object based on its vector?

im trying a different approach about how i could control my player in a sort of like a first person POV
Kira
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location:
Posted: 29th May 2008 17:59
bumping

Login to post a reply

Server time is: 2024-11-20 11:42:15
Your offset time is: 2024-11-20 11:42:15