Top-Down Game?
Posted: Wed Jul 12, 2006 5:25 pm
I want to make a top down game, but i dont know how to adjust the camera to do so.
Thanks in advance.
Thanks in advance.
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
Code: Select all
virtual ICameraSceneNode* irr::scene::ISceneManager::addCameraSceneNode ( ISceneNode * parent = 0,
const core::vector3df & position = core::vector3df(0, 0, 0),
const core::vector3df & lookat = core::vector3df(0, 0, 100),
s32 id = -1
) [pure virtual]
Adds a camera scene node to the scene graph and sets it as active camera.
This camera does not react on user input like for example the one created with addCameraSceneNodeFPS(). If you want to move or animate it, use animators or the ISceneNode::setPosition(), ICameraSceneNode::setTarget() etc methods.
Parameters:
position,: Position of the space relative to its parent where the camera will be placed.
lookat,: Position where the camera will look at. Also known as target.
parent,: Parent scene node of the camera. Can be null. If the parent moves, the camera will move too.
id,: id of the camera. This id can be used to identify the camera.
Returns:
Returns pointer to interface to camera if successful, otherwise 0. This pointer should not be dropped. See IUnknown::drop() for more information.
Code: Select all
camera = scene->addCameraSceneNode(0, vector3df(0,100,0), vector3df(0,0,0));