FireMan
Member
|
pos() + Vector - problem
Hi.
I have problem witch my vector. I made car and i'm going to set camera on driver position, not center (car.pos()). I must change pos by car.pos()+Vec(-0.3,0,-0.3), but when i ride around, camera position was changing. I show you that on thic picture:
RED - center pos, i don't have problem
BLUE - i must set that pos, but i have problem when i drive around. Camera changing position by this blue line.
How to set static position by car ?
|
|
09-17-2011 01:23 PM |
|
Dandruff
Member
|
RE: pos() + Vector - problem
Adding the vectors like that look fine to me, maybe it's something else that's moving your camera in your code?
|
|
09-17-2011 06:38 PM |
|
BlackHornet
Member
|
RE: pos() + Vector - problem
at least if its local space he changes position...otherwise he will have to multiply the camera-offset with the rotation matrix of the vehicle to get correct position
Urbanity Online: http://www.facebook.com/pages/Urbanity-Online/162454237136358
Join the Esenthel IRC Channel @ Freenode: http://webchat.freenode.net/?channels=##Esenthel
|
|
09-17-2011 06:41 PM |
|