iPcmNewCamera::Tracking Struct ReferenceThis is a camera to be used with actoranalog. More...
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 DescriptionThis 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
Member Function Documentation
|virtual TargetState iPcmNewCamera::Tracking::GetTargetState||(||)||
- The target state
|virtual bool iPcmNewCamera::Tracking::ResetCamera||(||)||
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||)||
Sets the target entity that we focus on when targetstate == TARGET_OBJ.
The name of the entity.
|virtual void iPcmNewCamera::Tracking::SetTargetState||(||TargetState||targetstate||)||
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||)||
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:
Generated for CEL: Crystal Entity Layer 1.4.0 by doxygen 1.5.8