About Store Forum Documentation Contact
Donations:
345$/mo



Post Reply 
pos() + Vector - problem
Author Message
FireMan Offline
Member

Post: #1
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:

[Image: problemdk.jpg]

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
Visit this user's website Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #2
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
Find all posts by this user Quote this message in a reply
BlackHornet Offline
Member

Post: #3
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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply