iPcmNewCamera::Tracking Struct 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. | |
Detailed Description
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.
Member Function Documentation
| virtual TargetState iPcmNewCamera::Tracking::GetTargetState | ( | ) | [pure virtual] |
- Returns:
- The target state
| 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.
- Parameters:
-
The name of the entity.
| virtual void iPcmNewCamera::Tracking::SetTargetState | ( | TargetState | targetstate | ) | [pure virtual] |
Sets the state of the targetting.
- TARGET_BASE: focus on the entity we're following.
- TARGET_OBJ: focus on the entity set by SetTargetEntity (...)
- TARGET_NONE: focus on nothing and also follow the on the x axis
| 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.
The documentation for this struct was generated from the following file:
- propclass/newcamera.h
Generated for CEL: Crystal Entity Layer 1.4.1 by doxygen 1.7.1
