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 / Explosions and Implosions

Author
Message
Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 13th Aug 2006 22:44
Alright,these are two things I had been planning for my game for a while. First issue,explosions. When I modify the explosion function in the "Explosion" demo,it doesn't work. Here is the modified code for that:


That code doesn't effect any rigid body.

Now onto issue 2. In my game I wanted implosions as well. Now,how would I go about doing this? Can I have spots of gravity so things can be sucked into that,and then delete the point. Or do I have to apply a force to the object until it goes to that one point? Thanks in advance

Woohoo. DP is finally released!
Syncaidius
19
Years of Service
User Offline
Joined: 22nd Mar 2005
Location: United Kingdom
Posted: 13th Aug 2006 23:08
You could make a sphere object which has been turned inside you, then you could scale it inwards until you no longer need it.

Doing that would squash all the objects inside the sphere. Once the sphere has disappeared, the objects might explode (which may or may not be desired ).

I'll give it a go and if I've got something working, i'll post it here.

WORLD - A free World editor, capable of creating the most complex of worlds (including physics, skies, water, shaders, terrain editing and more). Best of all, it's FREE!

Login to post a reply

Server time is: 2024-04-25 00:08:28
Your offset time is: 2024-04-25 00:08:28