Create a third person view camera and fallow a sphere

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
bapi
Posts: 33
Joined: Fri Apr 04, 2008 1:57 pm
Location: India
Contact:

Create a third person view camera and fallow a sphere

Post by bapi »

I want to add a camera of third person view to a sphare that is moveable with keys.

How can i do that?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

search the forum, it's been discussed many times before :)
Image Image Image
Daggio
Posts: 9
Joined: Mon Oct 20, 2008 7:04 am
Location: Surabaya, Indonesia

Post by Daggio »

simple. just add a camera (not the FPS camera) to your sphere and then process user input to move the sphere

just as JP said it has been explained many times before, also it's also good if you do the tutorials :D
Josh1billion
Posts: 125
Joined: Thu Dec 11, 2008 9:50 pm
Location: Wisconsin
Contact:

Post by Josh1billion »

When the player moves, calculate the offset (vector3df offset = newPosition - oldPosition). Then, add that offset to the camera position (camera->setPosition( camera->getPosition() + offset ); ).
www.JoshForde.com

Latest release: Super Orbulite World.
In development: Season of Dreams and others
bapi
Posts: 33
Joined: Fri Apr 04, 2008 1:57 pm
Location: India
Contact:

Post by bapi »

Thank for u reply.

I have also done it myself.
Post Reply