|
Physics Explosion?
#244330
01/04/09 01:45
01/04/09 01:45
|
Joined: Jul 2008
Posts: 54 Taipei, Taiwan
PlaystationThree
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2008
Posts: 54
Taipei, Taiwan
|
I'm not sure if this has been posted before; I couldn't find it.
How can you make an explosion at a certain point and all the entities around it with physics applied will get blasted in the right direction depending on the distance from it to the point?
Bet you don't know where Taiwan is lol.
"The Lord is my light and my salvation..." Psm 27:1
|
|
|
Re: Physics Explosion?
[Re: PlaystationThree]
#244384
01/04/09 12:53
01/04/09 12:53
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
You can create an invisible physics object with high mass in the middle of all other objects. It will push the other objects away. The effect looks like an explosion.
no science involved
|
|
|
Re: Physics Explosion?
[Re: fogman]
#244386
01/04/09 12:55
01/04/09 12:55
|
Joined: Jul 2007
Posts: 69
fat32
Junior Member
|
Junior Member
Joined: Jul 2007
Posts: 69
|
this way need special code ?
Last edited by fat32; 01/04/09 12:57.
dobidob hosein_dig and max_man7000 game HAPPY NEW YEAR !!
|
|
|
Re: Physics Explosion?
[Re: fogman]
#244389
01/04/09 13:17
01/04/09 13:17
|
Joined: Jul 2007
Posts: 69
fat32
Junior Member
|
Junior Member
Joined: Jul 2007
Posts: 69
|
i know Physics has come for normal work but " PlaystationThree " tell want create Explosion .
dobidob hosein_dig and max_man7000 game HAPPY NEW YEAR !!
|
|
|
Re: Physics Explosion?
[Re: fat32]
#244394
01/04/09 14:12
01/04/09 14:12
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
It works just like I´ve written. The objects "will get blasted in the right direction".
no science involved
|
|
|
Re: Physics Explosion?
[Re: fogman]
#244481
01/05/09 00:04
01/05/09 00:04
|
Joined: Jul 2008
Posts: 54 Taipei, Taiwan
PlaystationThree
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2008
Posts: 54
Taipei, Taiwan
|
Is there no way to just c_scan from the position, then in the entitys' EVENT_SCAN event calculate the distance and direction from the explosion point, then calculate the correct force that needs to be applied then use phent_addcentralforce(); or some other one of those functions to apply it in the direction. I know there would be lots of trig and stuff involved, and i would figure it out myself, but I'm not even out of high school yet so, obviously, I haven't learned that yet.
Bet you don't know where Taiwan is lol.
"The Lord is my light and my salvation..." Psm 27:1
|
|
|
Re: Physics Explosion?
[Re: PlaystationThree]
#247450
01/20/09 23:30
01/20/09 23:30
|
Joined: Aug 2004
Posts: 1,345 Kyiv, Ukraine
VeT
Serious User
|
Serious User
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
|
really, i dont think that sphere with huge mass would be looking like explotion... the larger radius you would change, the large center would move up sorry for my english, i'd try to make shema 1) q 0 ------ q - object 0 - little sphere 2) as radius increased |------| \----/ q \--/ -- something like this, so sphere wouldnt touch near object my solution is to make mix from lite-c's "c_scan" and newton's "add_force": we scan for near objects, calculate the force and apply it, as i made in my wrapper 
|
|
|
Re: Physics Explosion?
[Re: VeT]
#247474
01/21/09 06:40
01/21/09 06:40
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
Have you tried it? I have, I could even make a short video. It´s a hack, I admit, but it works.
no science involved
|
|
|
|