IrrAddCamera

section index

## NAME

IrrAddCamera - add a camera to the scene

## SYNOPSIS

*CameraSceneNode.l = IrrAddCamera(posX.f,posY.f,posZ.f, lookAtX.f, lookAtY.f, lookAtZ.f)

## INPUTS

posX.f,posY.f,posZ.f | - | position of the camera
lookAtX.f,lookAtY.f,lookAtZ.f | - | Target of tha Camera (point to look at)

## FUNCTION

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 IrrAddFPSCamera(). If you want to move or animate it, use animators or the IrrSetNodePosition() , IrrSetCameraTarget() etc methods.

## EXAMPLE

       *camera.l = IrrAddCamera(0,0,0, 10,0,0)

## RESULT

Pointer to a Camera-SceneNode