Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Amadrias

Cameras Update

This topic is 6101 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Nope.

Unless the rotation is too far in the wrong direction (> 90) from the lookat point.
What would happen then is unknown.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!