Added: 1 year ago
From: tisachris
Views: 254
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (4)

Sign In or Sign Up now to post a comment!
  • thanks for the answer but i don't know scripting.... never mind you should put a use for that....

  • cool. how did u make that? how did u make an object have gravity plz reply.

  • @IcePhenixEx First of all you need a decent understanding of how to code for the game engine. What I basically did was to set an object property for all objects that I wanted to be effected by the gravity of a source object, and then I had the script get the respective distances of all the objects from the gravity source(s), and vectors leading to the source. Then, using the distance as the force determining factor (mass * (1/distance) * vector), I applied the obtained values to the force.

  • @IcePhenixEx (x,y,z) of each object effected by the gravity. Oh, and as a helpful hint, you might want to set a maximum value that the force can equal, otherwise the objects will jet out incredibly quickly as they approach the center of the gravity source

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more