Hi,
I'm trying to setup an Isometric camera and I've been following a couple of forum posts (slightly outdated) to do so.
I'm basically doing the following:
My PlayerController class extends from MobilePC (previously from GamePlayerController) and I set the defaults as:
The IsometricCamera class contains a copy of the UpdateViewTarget function with added code to support the Isometric view:
And my GamePawn extends MobilePawn and contains an overloaded version of the function GetDefaultCameraMode:
The problem is:
This code is working on PC, and works as well in the Mobile Previewer.
But it doesn't work on the device itself. I am not really sure what is going on, but it seems that it's being overridden by something, somewhere.
Would anyone have any idea what could be the problem here?
Thanks!
I'm trying to setup an Isometric camera and I've been following a couple of forum posts (slightly outdated) to do so.
I'm basically doing the following:
My PlayerController class extends from MobilePC (previously from GamePlayerController) and I set the defaults as:
Code:
DefaultProperties { CameraClass=class'IsometricCamera'; }
Code:
case 'Isometric': // fix Camera rotation Rot.Pitch = (-55.0f *DegToRad) * RadToUnrRot; Rot.Roll = (0 *DegToRad) * RadToUnrRot; Rot.Yaw = (30.0f *DegToRad) * RadToUnrRot; Loc.X = PCOwner.Pawn.Location.X - 64; Loc.Y = PCOwner.Pawn.Location.Y - 64; Loc.Z = PCOwner.Pawn.Location.Z + 156; Pos = Loc - Vector(Rot) * FreeCamDistance; OutVT.POV.Location = Pos; OutVT.POV.Rotation = Rot; break;
Code:
simulated function name GetDefaultCameraMode( PlayerController RequestedBy ) { return 'Isometric'; }
This code is working on PC, and works as well in the Mobile Previewer.
But it doesn't work on the device itself. I am not really sure what is going on, but it seems that it's being overridden by something, somewhere.
Would anyone have any idea what could be the problem here?
Thanks!
Comment