Results 1 to 6 of 6

Thread: gravity??

  1. #1
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    36

    Question gravity??

    hello guys i am doing a ios game in my game when a player push a button in the direction he wants (LEFT WALL, RIGHT WALL, CEILING, and FLOOR) in any manner that they chose....please help me ...thank you

  2. #2
    Try my game Never End, now on the App Store! For more info, see the release thread.

    My Blog: WillyG Productions - Your Premiere UDK Resource
    My YouTube Channel: WillyG Productions
    My Facebook Page: WillyG Productions

  3. #3
    MSgt. Shooter Person
    Join Date
    Jan 2012
    Posts
    36

    Default

    not exactly ...the camera should not rotate only player has to change..i mean it is like gravity guy....please help me

  4. #4
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money

  5. #5

    Default

    Lol it seems a lot of people have tried this before...

    Either your player should be a KActor (rigid body physics) or have its physics set to PHYS_Spider or PHYS_Flying and then you move him around manually (custom physics), rotating him to face the direction that gravity is currently in. With a KActor moving the guy around will have to be done through StaticMeshComponent.AddForce() and AddTorque(). With a pawn, you can just use SetPosition() and SetRotation().
    Try my game Never End, now on the App Store! For more info, see the release thread.

    My Blog: WillyG Productions - Your Premiere UDK Resource
    My YouTube Channel: WillyG Productions
    My Facebook Page: WillyG Productions

  6. #6
    Palace Guard
    Join Date
    Feb 2010
    Location
    Tegleg Records
    Posts
    3,785
    Gamer IDs

    Gamertag: tegleg digital

    Default

    in that vid i used PHYS_Spider, then addforce() in the pawns (local) downward direction to all dynamic actors.
    and disabled world gravity
    Code:
    We.spazmodicaly.simulate.new.sound.with.technical.equipment.that.is.specificaly.manufactured.for.humans.to.communicate.in.outer.space.Tegleg.manipulates.time.and.space.to.create.new.experiences.to.generate.a.hardcore.database.generation.
    LOOK>> Please ask questions in the forum, NOT a private message <<LOOK
    tegleg.co.uk
    My Tutorials n Stuff
    Games: Tegs Playground - Unwheel2 - VCTF Game - Sponic Mesh 3D - Shh.. dont tell anyone about my android apps.
    will code for money


 

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.