Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Question about Dark Physics

Author
Message
Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 20th Dec 2009 22:42
Is there a way to give objects their own gravity?

Like making a planet?

DBPro!
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 21st Dec 2009 12:01 Edited at: 21st Dec 2009 12:02
Yes. You could set the global gravity to 0,0,0, then have a spherical force field set to pull stuff towards the centre of the planet model slowly.

If I get time i'll knock up a quick code snippet.

Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 22nd Dec 2009 05:47
How would you make a spherical force field?

DBPro!
Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 28th Dec 2009 06:22
I checked the references, and I found nothing about forces at all.

How would I force the objects towards the other object?

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 28th Dec 2009 14:23
here the setup part of making a force field.


and here the demo code the show how to use it, comes form the compo section, you will need to add the media which you all ready have in other physx demos.



Dark Physics makes any hot drink go cold.
Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 29th Dec 2009 04:40
Thank you for the code.

Login to post a reply

Server time is: 2024-11-24 14:49:50
Your offset time is: 2024-11-24 14:49:50