Results 1 to 6 of 6
  1. #1
    MSgt. Shooter Person
    Join Date
    Sep 2010
    Posts
    117

    Default Camera movement via gyro

    Hi,

    I've had a look around but can't find a solution. I'm trying to get the camera to move via the iPhones gyro. And not just lean to the left or right, but full 360 movement.

    Cheers

    Dodge

  2. #2
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,515

    Default

    Start by looking at the Mobile Vehicle Example om how to read the values.

  3. #3
    MSgt. Shooter Person
    Join Date
    Sep 2010
    Posts
    117

    Default

    Cheers Snake,

    Just got the example working with the UDK Remote so just looking at what does what! Wish I knew programming! haha

  4. #4
    MSgt. Shooter Person
    Join Date
    Sep 2010
    Posts
    117

    Default

    Still no luck =[
    Not even sure where to start!

  5. #5
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,515

    Default

    Figure out how to rotate the camera maybe?

  6. #6
    MSgt. Shooter Person
    Join Date
    Sep 2010
    Posts
    117

    Default

    My guess is to use
    Forward = (((PlayerInput.aTilt.X * UnrRotToDeg) - 30.f) / 50.f) * -1.f;
    Strafe = (PlayerInput.aTilt.Z * UnrRotToDeg) / 20.f;
    minus the Forward and Strafe, where it affects camera,


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.