Skip to main content
GameDev.net gamedev.net
🔒 Locked

Cameras Update

Started by Amadrias Jan 10, 2002 at 8:28 AM 1 replies 700+ views
Original Post
Amadrias
Amadrias
Hi, I wondered if I change PR_CAMERA->rotation values and/or change PR_CAMERA->target values in a CAMFLAG_AIM_TARGET initialized PR_CAMERA, everything will be updated correctly. If I change rotation, do I have to also change target ? Thanks, Amadrias
Gorky
Gorky
Nope.

Unless the rotation is too far in the wrong direction (> 90) from the lookat point.
What would happen then is unknown.
ChrisE
ChrisE
There is really only one camera type, which is AIM_TARGET. If the ANGLE_BASED type is used, a target is generated based on the rotation values.

Changing the rotation with an AIM_TARGET camera won''t do anything. Changing the target location will though. Remember to call PR_SetActiveCamera after changing anything in the camera structure.
Author of Power Render (http:/www.powerrender.com)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.