SC_SetCameraPos_FollowTarget

Usage

void SC_SetCameraPos_FollowTarget( int dist, int angle, int HeightOffset)


Summary

Sets the camera position so that it follows the target wherever the target goes.


More Information

- dist = the distance to maintain between the camera and the target.
- angle = the bearing from the target to the camera (use 64 for side view).
- HeightOffset = the height that the target is above the target.

Up vector depends on height.  Use 0, 1, 0 for a level, raised or lowrered camera. Use 0, 0, -1 for look down camera.


Example

// slightly higher (32) side view (64) of target at 200 distance
SC_SetCameraPos_FollowTarget( 200, 64, 32);


Last Revised: 08 May 2008

Full Functions List


Copyright 2008 to 2009 by James Bunting
www.jbplay.com/games/rod3d/

This page was automatically generated by James' Script Docs Generator