Announcement

Collapse
No announcement yet.

[Non Issue - Fixed] Problem with extending Camera base class on iOS.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Non Issue - Fixed] Problem with extending Camera base class on iOS.

    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:

    Code:
    DefaultProperties
    {
    	CameraClass=class'IsometricCamera';		
    }
    The IsometricCamera class contains a copy of the UpdateViewTarget function with added code to support the Isometric view:

    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;
    And my GamePawn extends MobilePawn and contains an overloaded version of the function GetDefaultCameraMode:

    Code:
    simulated function name GetDefaultCameraMode( PlayerController RequestedBy )
    {
    	return 'Isometric';
    }
    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!

    #2
    Hmm, I think my app is actually simply crashing on the device. Currently investigating the problem.

    Comment


      #3
      Confirmed. The code is running fine. It was a totally unrelated issue.

      Comment

      Working...
      X