[fixed] Camera position bug

Found a bug? Report it here.

Moderator: PPS-Leaders

Post Reply
silvan
Noxonian Brolghormeg
Posts: 37
Joined: Wed Oct 11, 2006 7:43 am

[fixed] Camera position bug

Post by silvan » Tue Jun 19, 2007 4:04 pm

When switching to the "1" viewmode the positions of all the other cameras in the level get somehow reset. (to x: -6.640292; y: 3.334079; z: -0.004783 lenght: 7.430315 )

EDIT:
(solved:) All the cameras were subscribed to the PEV_VIEW0 event. When you pressed "1" all cameras were set to the relative coordinates x: -6.640292; y: 3.334079; z: -0.004783, which were in my case also the absolute coordinates because the parent of the camera in question was the nullparent.

I fixed this by commenting the the following in the camera:

Code: Select all

//  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW0);
//  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW1);
//  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW2);
//  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW3);
//  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW4);
//  this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW5);
If something stopped working for you please let me know.
The light on the end of the tunnel is a train.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests