Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Akow, 1 invisible), 1,417 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Physics Explosion? #244330
01/04/09 01:45
01/04/09 01:45
Joined: Jul 2008
Posts: 54
Taipei, Taiwan
PlaystationThree Offline OP
Junior Member
PlaystationThree  Offline 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
F
fogman Offline
Expert
fogman  Offline
Expert
F

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 Offline
Junior Member
fat32  Offline
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: fat32] #244387
01/04/09 13:00
01/04/09 13:00
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Take the physics examples in the manual, these should work.
http://www.conitec.net/beta/ph.htm


no science involved
Re: Physics Explosion? [Re: fogman] #244389
01/04/09 13:17
01/04/09 13:17
Joined: Jul 2007
Posts: 69
fat32 Offline
Junior Member
fat32  Offline
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
F
fogman Offline
Expert
fogman  Offline
Expert
F

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 Offline OP
Junior Member
PlaystationThree  Offline 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 Offline
Serious User
VeT  Offline
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 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] #247474
01/21/09 06:40
01/21/09 06:40
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

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
Re: Physics Explosion? [Re: fogman] #248243
01/25/09 15:48
01/25/09 15:48
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
just like this?

Last edited by MMike; 01/25/09 15:48.
Page 1 of 3 1 2 3

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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