Announcement

Collapse
No announcement yet.

Planet Gravity

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

    Planet Gravity

    I'm building a space map and want each world in realtime, I have gotten the scaled mesh worlds to work good, now does anyone know how I would make a gravity field around the planet so when the character comes in contact he is magnetically attached to the surface ? as opposed to like being on the top and dropping off the sides.I have thought of a space volume or physics volume but I would'nt know how to wrap it around the mesh.

    #2
    Ahh yes a lot of people want a feature like this. Sadly UDK does not have it, you'll have to script it or hire someone to script it. Though I cannot tell you how sorry I just don't know.

    Comment


      #3
      cool thanks man! it still sounds complicated but I will try and post it if I figure it out.

      Edit:
      I found out ladder volumes work pretty well for navigating on the sides of things..

      Comment


        #4
        might not be possible but you could have a look at whats going on in the ladder volume and copy the relevent code into a mesh script
        or have everything made of straight lines and cover it in ladder volumes

        Comment


          #5
          You should search the forums. This comes up almost every week. There are some (at least partial) answers out there.

          Comment


            #6
            best method? script it!

            Comment


              #7
              Yeah that wouldn't be too hard. I think you could just iterate through all the actors and apply a force in the direction of the planet.

              Comment


                #8
                Originally posted by zalost View Post
                Yeah that wouldn't be too hard. I think you could just iterate through all the actors and apply a force in the direction of the planet.
                Which would be buggy, a hackjob and laggy :P

                PHYS_Spyder is what i would do, though for physics objects such as KActors and debris it would require you to write your own physics engine, which is a lot of work, but not that hard to do.

                Comment


                  #9
                  check this out
                  http://www.youtube.com/watch?v=CZu1H-XDx8w

                  he says he going to release it open source

                  Comment

                  Working...
                  X