Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,103 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Particles that don't dig into walls #149707
08/22/07 20:17
08/22/07 20:17
Joined: Apr 2006
Posts: 265
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

Joined: Apr 2006
Posts: 265
Does anybody out there have a way of stopping particles from digging into walls if they are too close. I've tried znear... no good for particles. Anybody got the same problem and solved it?

Re: Particles that don't dig into walls [Re: vartan_s] #149708
08/22/07 21:13
08/22/07 21:13
Joined: Jul 2002
Posts: 2,002
Europe
ShoreVietam Offline
Expert
ShoreVietam  Offline
Expert

Joined: Jul 2002
Posts: 2,002
Europe
you could trace into the particles movement direction but I wouldn'T do that.

Particle functions should be as short as possible, which includes avoiding trace and other complex functions.

In normal case it should not matter.
Even in commercial games often borads of exploding boxes and stuff just fall through the ground and disappear.


My project Schlacht um Kyoto - Das Samurai Browsergame! (sorry, german only)
Re: Particles that don't dig into walls [Re: ShoreVietam] #149709
08/23/07 19:17
08/23/07 19:17
Joined: Aug 2003
Posts: 902
Van Buren, Ar
Gordon Offline
User
Gordon  Offline
User

Joined: Aug 2003
Posts: 902
Van Buren, Ar
do a trace when you create the particle then delete it if it passes the distance (or make it bounce of the object).


Our new web site:Westmarch Studios
Re: Particles that don't dig into walls [Re: Gordon] #149710
08/24/07 07:12
08/24/07 07:12
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
you can't avoid particles to pass 2 walls, the only method would be to use sprites + collisions detection OR u detec if the vector is into a solid black (omg, don't ask me for the name of that function :S)

Re: Particles that don't dig into walls [Re: Scorpion] #149711
08/27/07 14:51
08/27/07 14:51
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
Roel Offline
Senior Member
Roel  Offline
Senior Member

Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
you can also use c_content for particles
if content returns IN_SOLID (something like that) you just kill them

it is faster than tracing, but I do not recommend to use it for 100000000 particles, or so(I learned the it bad way)


Check out the throwing game here: The throwing game
Re: Particles that don't dig into walls [Re: Roel] #149712
08/27/07 15:00
08/27/07 15:00
Joined: Nov 2002
Posts: 792
Berne, Switzerland
elsewood Offline
User
elsewood  Offline
User

Joined: Nov 2002
Posts: 792
Berne, Switzerland
you could also calculate the lifespan of the particle once in the init function with a trace in the proper direction and knowing the speed of the particle that should not be a problem...


A bus station is where the bus stops. A train station is where the train stops.
On my desk I have a workstation...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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