|
-
Feb 27th, 2003, 07:35 PM
#1
Thread Starter
Frenzied Member
3rd person... help :?
I dont want to admit it but i'm stuck 
--
I want to see my character in third person, and I succeeded in playing the camera at the right angle, but I have no clue how interpreter the x,y,z's and how to make things go smooth..
Just to keep things a bit clear for readers:
I've got the following functions available (and can create more if needed but I presume this is all I need)
* Getting/Setting the X,Y,Z of the camera (locational)
* Getting/Setting the X,Y,Z of the player (locational)
* Rotational info for both (and setting it)
code example:
Code:
' init
PlayerModel.Set_Position plX, plY, plZ
PlayerModel.Set_Rotation 0, 1, 0
' this ones in the main render loop
Nemo.Camera_SetPosition Vector(87 + plX, 220 + plY, 114 + plZ), Vector(plX, plY, plZ)
plX = X of player.
plY = Y of player. (which doesn't change, there aren't any height differences on the map)
plZ = Z of the player.
I know the setposition of the camera is wrong, but heck, it worked for now 
so if anyone can help me out with this problem or has some source available that can help me fix or solve this problem...
(I suck at 3d maths btw
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|