Results 1 to 8 of 8
  1. #1
    MSgt. Shooter Person
    Join Date
    Apr 2011
    Posts
    110

    Default How can UDK Mobile detect iOS device move or rotation

    How to when my iOS device rotation,the game object follow to draw to move vector ?

    example: look the photo, when my iphone rotation tendency on the left , and then the object move draw to left. when iphone rotation tendency on the right , the object move to right .

    How can UDK Mobile detect iOS device move or rotation , extend what .uc function??


    Last edited by May; 05-01-2011 at 02:33 PM.

  2. #2
    MSgt. Shooter Person
    Join Date
    Apr 2011
    Posts
    110

    Default

    UDK can't to detecting iOS device rotation ???

  3. #3
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,953

    Default

    MobileInputSystem

    Please look in the documentation.
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  4. #4
    MSgt. Shooter Person
    Join Date
    Apr 2011
    Posts
    110

    Default

    Quote Originally Posted by Blade[UG] View Post
    MobileInputSystem

    Please look in the documentation.
    thx very much ^_^ I will to read . thank again...

    ok , I use about 2hours to read the doc.

    Blade[UG]
    the doc only teach about create stick kind input / buttom kind input / touch object input ...
    but no any detect iOS device rotation function , example , you shake the iPhone , the object ball will shake , when you rotation the iPhone , the ball will roll .
    the doc no any same input .

    ummmmm... I think UDK Mobile can't to do detecting iOS rotation .
    Last edited by May; 05-02-2011 at 08:19 AM.

  5. #5
    MSgt. Shooter Person
    Join Date
    Jun 2009
    Posts
    69

    Default

    Quote Originally Posted by May View Post
    How to when my iOS device rotation,the game object follow to draw to move vector ?

    example: look the photo, when my iphone rotation tendency on the left , and then the object move draw to left. when iphone rotation tendency on the right , the object move to right .

    How can UDK Mobile detect iOS device move or rotation , extend what .uc function??


    http://udn.epicgames.com/Three/Mobil...t%20Properties

    MobilePitch - The current tilt value of the device's gyroscope, if available.
    MobilePitchCenter - The center value for the device pitch.
    MobilePitchMultiplier - Scaling factor for the device's pitch, adjusting sensitivity to pitch motion.
    MobileYaw - The current yaw value of the device's gyroscope, if available.
    MobileYawCenter - The center value for the device yaw.
    MobileYawMultiplier - Scaling factor for the device's yaw, adjusting sensitivity to yaw motion.
    MobilePitchDeadzoneSize - The distance from the MobilePitchCenter that the MobilePitch value must be to be considered for input. This would be used if motion input was being used for controls in the game.
    MobileYawDeadzoneSize - The distance from the MobileYawCenter that the MobileYaw value must be to be considered for input. This would be used if motion input was being used for controls in the game.
    DeviceMotionAttitude - A Vector describing the attitude or orientation of the device.
    X - Represents rotation around the axis coming straight out from the screen.
    Y - Only valid if the device has a gyroscope.
    Z - Represents rotation around the horizontal axis of the device.
    DeviceMotionRotationRate - A Vector holding the rate of change of the device's attitude. This value is much more accurate on devices with a gyroscope.
    DeviceMotionGravity - A Vector holding the gravity vector of the device. Only valid if the device has a gyroscope.
    DeviceMotionAcceleration - A Vector holding the current linear acceleration of the device. Only valid if the device has a gyroscope.
    bDeviceHasGyroscope - TRUE if device has a gyroscope.
    DeviceGyroRawData - A Vector holding the raw gyroscope motion data. Values are in the range [0.0, 1.0].
    bDeviceHasAccelerometer - TRUE if device has an accelerometer.
    DeviceAccelerometerRawData - A Vector holding the raw accelerometer data. Values are in the range [0.0, 1.0].
    X - Roll. Represents rotation around the axis coming straight out from the screen.
    Y - Portrait Pitch. Represents rotation around the horizontal axis in portrait orientation.
    Z - Lanscap Pitch. Represnts the rotation around the horizontal axis in landscape orientation.
    MobileSeqEventHandlers - An array of SeqEvent_MobileBase events looking to listen in on Motion events.
    Touch

  6. #6
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,953

    Default

    4th section down in the document i linked, not even a full page.

    ^^ What Rasmus quoted.
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  7. #7

    Default lock iphone screen rotation

    Hi all, is it possible to lock the screen rotation? I want to execute the game in just in portrait, without use the device rotation.

    Eivar

  8. #8
    MSgt. Shooter Person
    Join Date
    Oct 2010
    Posts
    401

    Default

    Same question here I dont know how to lock screen
    I'm learning UnrealScript so my post can be really lame.


 

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.