- iPcmNewCamera
- Tracking
![]() |
Public API Reference |
This is a camera to be used with actoranalog. More...
#include <propclass/newcamera.h>
Inherits iPcmNewCamera::General.
Public Member Functions | |
| virtual TargetState | GetTargetState ()=0 |
| virtual bool | ResetCamera ()=0 |
| Resets this camera to its original state facing the same direction as the anchor fixed on the target,. | |
| virtual bool | SetTargetEntity (const char *name)=0 |
| Sets the target entity that we focus on when targetstate == TARGET_OBJ. | |
| virtual void | SetTargetState (TargetState targetstate)=0 |
| Sets the state of the targetting. | |
| virtual void | SetTargetYOffset (float targetyoffset)=0 |
| Since position is often set at the 'feet' of an object, set a fixed offset upwards. | |
This is a camera to be used with actoranalog.
It tracks left and right movement and follows movement in and out of the camera. you can visualise the camera <--> player connection as a hard pole with a spring on the end C----|oooP the ---- (hard pole) can never be compressed except by collision detection whereas the springs ooo can be decompressed and stretched between 0 and 2 * normal spring length ... the spring is relaxed at the normal spring length
Definition at line 213 of file newcamera.h.
| virtual TargetState iPcmNewCamera::Tracking::GetTargetState | ( | ) | [pure virtual] |
| virtual bool iPcmNewCamera::Tracking::ResetCamera | ( | ) | [pure virtual] |
Resets this camera to its original state facing the same direction as the anchor fixed on the target,.
| virtual bool iPcmNewCamera::Tracking::SetTargetEntity | ( | const char * | name | ) | [pure virtual] |
Sets the target entity that we focus on when targetstate == TARGET_OBJ.
| The | name of the entity. |
| virtual void iPcmNewCamera::Tracking::SetTargetState | ( | TargetState | targetstate | ) | [pure virtual] |
Sets the state of the targetting.
| virtual void iPcmNewCamera::Tracking::SetTargetYOffset | ( | float | targetyoffset | ) | [pure virtual] |
Since position is often set at the 'feet' of an object, set a fixed offset upwards.