Results 1 to 4 of 4
  1. #1

    Default Can't Get my tilt value from my device

    hi friends.
    Thanks in advance for helping me.
    right now i am creating a game using unreal script. in that game i need the tilt value of the player device. i studied the game document that we can get this value by using the MobilePlayerInput properties like MobileYaw, MobilePitch etc.
    but the value is returning as 0.0 always even my device is rotated.
    i check this with the kismet by using the mobile motion access and made it to print using logs i am getting value from my device in kismet.

    i dont know why i am not getting tile value in the unreal script. i have properly initialize the mobileplayerinput in my code.

    i uses UDK 12-2011 version.
    Last edited by alagarnraja; 01-12-2012 at 07:17 AM.

  2. #2
    Iron Guard
    Join Date
    Nov 2009
    Location
    CA
    Posts
    567

    Default

    All of the "motion" stuff from here is useful: http://udn.epicgames.com/Three/MobileInputSystem.html
    Here is a more specific example: http://udn.epicgames.com/Three/Mobil...Input%20Events

    Also, if you can afford it, the Eat3D iOS example using UDK does a good job explaining the tilt system. That link is here: http://www.eat3d.com/udk_mobile

    Also, if you can try to explain what is going on a bit better, that might help some of us out, in order to better understand what is happening.
    - Are you using UDK Remote or have you put a build onto your iDevice directly?
    -What iDevice are you using?
    -Can you post your code?
    -Can you show us the portion of whatever it is that is returning the value of 0.0, for motion input?
    -Can you show us your Kismet (if applicable) ?
    -Is there anything else you think we should know?

  3. #3
    Iron Guard
    Join Date
    Feb 2010
    Location
    Bulgaria
    Posts
    608

    Default

    PlayerInput.uc
    PHP Code:
    // x - pitch, y - yaw, z - roll , if you hold the device(ipod) sideways with the home button to the right
    // or just find it through trial and error :)
    var    input            vector        aTilt
    var    
    input            vector        aRotationRate;
    var    
    input            vector        aGravity;
    var 
    input            vector        aAcceleration
    It just works
    You should read the change logs :P
    Last edited by AdAstra; 01-12-2012 at 12:53 PM.

  4. #4

    Default

    Hi there.
    Thank you very much for your responsible reply to my Question.
    actually i corrected my mistake. i took the values from the MobileYaw, MobilePitch properties. where we must take it from the aTilt which will give us the tilt value of my device.
    i use ipod for test. and i get the input from UDK Remote.
    @Vawx
    @AdAstra
    Thank you very much for your help


 

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.