Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,253 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Physics Explosion? [Re: MMike] #258618
03/31/09 22:05
03/31/09 22:05
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
Posts: 175
Would you be able to create a negative gravity sphere in the middle? I believe that is what you really want to achieve. And if you're looking for the shockwave, you would want to increase the effective radius over time. I don't know which physics system would work best for this.

Re: Physics Explosion? [Re: fogman] #259009
04/03/09 13:09
04/03/09 13:09
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline
Serious User
VeT  Offline
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Originally Posted By: fogman
Have you tried it? I have, I could even make a short video.
It´s a hack, I admit, but it works.


yes, you can see it in my wrapper smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Physics Explosion? [Re: VeT] #263586
04/30/09 15:50
04/30/09 15:50
Joined: Jul 2008
Posts: 191
M
MDMDFSS Offline
Member
MDMDFSS  Offline
Member
M

Joined: Jul 2008
Posts: 191
Here I give you a code like in the Vidio:


FUNCTION explosion()
{
phent_settype (my, ph_rigid, ph_sphere);
phent_setmass (my, 1.8, ph_sphere); phent_setelasticity (my, 1, 1);
phent_setdamping (my, 15, 35);
phent_setfriction (my, 99);
my.invisible = on;
while(1)
{
phent_settype(my, 0, 0);
vec_scale(my.scale_x, 2);
phent_settype(my, ph_rigid, ph_sphere);
IF(my.scale_x > 150) //Bigger scale bigger explosion...
{
phent_settype(my, 0, 0);
remove(my);
return;
}
wait(1);
}
}

action boom
{
set (my, PASSABLE);
my.event = NULL;
wait (1);
ent_create (explo13_tga, my.x, explosion);
set (my, INVISIBLE);
wait (-3);
ent_remove(me);
}

this is a reely big boom wink

Re: Physics Explosion? [Re: MDMDFSS] #266013
05/15/09 14:31
05/15/09 14:31
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
i guess the above could work but it would be unstable in alot of cases, models flying off and other physics problems. better use c_scan and apply a force to all detected models instead wink

Re: Physics Explosion? [Re: darkinferno] #266017
05/15/09 14:46
05/15/09 14:46
Joined: Jul 2008
Posts: 191
M
MDMDFSS Offline
Member
MDMDFSS  Offline
Member
M

Joined: Jul 2008
Posts: 191
How do you meen that?

Re: Physics Explosion? [Re: MDMDFSS] #266019
05/15/09 14:51
05/15/09 14:51
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
say for example, you have a rocket... when the rocket hits, it runs:

c_scan(my.x,my.pan,vector(360,0,500),IGNORE_ME); //500 being the range, you can increase this.

now, every physics object that has enable scan and has the following code attached will be pushed away perfectly... no bugs here:

if (event_type == EVENT_SCAN)
{


VECTOR temp_dir;

VECTOR ex_dir;
vec_set(ex_dir,you.x);

vec_set(temp_dir,my.x);
vec_sub(temp_dir,ex_dir);
vec_normalize(temp_dir,500-result);//500 is the max speed
phent_addvelcentral(me,temp_dir);

}

Re: Physics Explosion? [Re: darkinferno] #266020
05/15/09 15:22
05/15/09 15:22
Joined: Jul 2008
Posts: 191
M
MDMDFSS Offline
Member
MDMDFSS  Offline
Member
M

Joined: Jul 2008
Posts: 191
Now I understand.
I don`t like bugs...
wink
thanks

Last edited by MDMDFSS; 05/15/09 15:39.
Re: Physics Explosion? [Re: MDMDFSS] #266024
05/15/09 15:29
05/15/09 15:29
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
event scan returns the distance to the c_scan enitity via result.... all i had to do was find the direction of the scanning entity and then propel the scanned entity away based on its distance to the scanner... i could remake my version of the above crysis video but i dont really see the need smile

Last edited by darkinferno; 05/15/09 15:32.
Re: Physics Explosion? [Re: MDMDFSS] #266025
05/15/09 15:30
05/15/09 15:30
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
event scan returns the distance to the c_scan enitity via result.... all i had to do was find the direction of the scanning entity and then propel the scanned entity away based on its distance to the scanner... its in my video, follow my sig and you'll see it in action wink

Re: Physics Explosion? [Re: darkinferno] #266026
05/15/09 15:31
05/15/09 15:31
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
i'm done with physics now though, all i need now is a concept artist or modeler :(( .... [voluntary ofcourse] laugh

Page 2 of 3 1 2 3

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1