![]() |
Public API Reference |
A class representing a simple camera, with capabilities for both first-person and third-person modes. More...
#include <propclass/simpcam.h>
Public Member Functions | |
| virtual void | Draw ()=0 |
| Render. | |
| virtual void | SetCameraOffset (const csVector3 &offset, bool world=false)=0 |
| Sets the offset from the center of the mesh's iMovable to the position of the camera. | |
| virtual void | SetDrawMesh (bool draw)=0 |
| Set a flag to determine whether or not the attached mesh and its children will be drawn in this camera view. | |
| virtual void | SetLookAtOffset (const csVector3 &lookat)=0 |
| Sets the offset from the center of the mesh's iMovable to the point the camera should look at. | |
| virtual void | SetMesh (iPcMesh *mesh)=0 |
| Set the mesh to follow. | |
A class representing a simple camera, with capabilities for both first-person and third-person modes.
This property class supports the following actions (add prefix 'cel.camera.simple.action.' if you want to access this action through a message):
| virtual void iPcSimpleCamera::Draw | ( | ) | [pure virtual] |
| virtual void iPcSimpleCamera::SetCameraOffset | ( | const csVector3 & | offset, |
| bool | world = false |
||
| ) | [pure virtual] |
Sets the offset from the center of the mesh's iMovable to the position of the camera.
| offset | the offset from the center of the mesh to the camera position. |
| world | if true then the offset is in world space so the camera will always look from the same side. |
| virtual void iPcSimpleCamera::SetDrawMesh | ( | bool | draw | ) | [pure virtual] |
Set a flag to determine whether or not the attached mesh and its children will be drawn in this camera view.
| draw | if true, the mesh will be drawn in this view. |
| virtual void iPcSimpleCamera::SetLookAtOffset | ( | const csVector3 & | lookat | ) | [pure virtual] |
Sets the offset from the center of the mesh's iMovable to the point the camera should look at.
| lookat | the offset from the center of the mesh to the lookat position. |
| virtual void iPcSimpleCamera::SetMesh | ( | iPcMesh * | mesh | ) | [pure virtual] |
Set the mesh to follow.
| mesh | the mesh property class for the camera to follow. |