A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
calsmurf2904
Orc
Posts: 401 Joined: Tue Sep 16, 2008 9:39 pm
Location: Netherlands
Quote
0
login to like this post
Post
by calsmurf2904 » Wed Sep 17, 2008 2:40 pm
Hello,
I am trying to make a 3rd person camera.
The formule i am using is :
Code: Select all
Vector3 CamPos = Vector3(Player->getPosition().x+(sin(Roll)*30),Player->getPosition().y+20,Player->getPosition().z+(cos(Roll)*30));
mCamera->setPosition(CamPos);
mCamera->lookAt(Player->getPosition());
However this isn't working.
Could someone help me with this ?
(BTW Roll :
)
crioto
Halfling
Posts: 59 Joined: Fri Aug 11, 2006 8:34 pm
Location: Bishkek, Kyrgyzstan
Contact:
Quote
0
login to like this post
Post
by crioto » Thu Sep 18, 2008 3:46 am
There are very good article for 3rd person camera creating.
Do your work, don't be stupid
calsmurf2904
Orc
Posts: 401 Joined: Tue Sep 16, 2008 9:39 pm
Location: Netherlands
Quote
0
login to like this post
Post
by calsmurf2904 » Thu Sep 18, 2008 12:23 pm
the problem with that tutorial is that it uses getWorldPosition wich isn't in Ogre 1.6 (From my understanding)
xadhoom
Minaton
Posts: 973 Joined: Fri Dec 28, 2007 4:35 pm
Location: Germany
x 1
Quote
0
login to like this post
Post
by xadhoom » Thu Sep 18, 2008 12:26 pm
_getDerivedPosition() should work instead...
calsmurf2904
Orc
Posts: 401 Joined: Tue Sep 16, 2008 9:39 pm
Location: Netherlands
Quote
0
login to like this post
Post
by calsmurf2904 » Thu Sep 18, 2008 2:39 pm
nvm...got it working without that tutorial
I used Blitz3D for a while and that has a Parent system and i figured out that Ogre3D has the same system....so i used that