Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Particles in Lite-C that actually works. [Re: EvilSOB] #248966
01/30/09 13:34
01/30/09 13:34
Joined: Jan 2009
Posts: 34
D
DrunkenPirate Offline OP
Newbie
DrunkenPirate  Offline OP
Newbie
D

Joined: Jan 2009
Posts: 34
Ok,

The pictures of what is happening now and what I want to happen are already in this thread. I want ship to look like #1 whether its turning or going straight.

Its a problem because we ARE setting the correct variable to begin with, but the particles acceleration accelerates away from the ship in the incorrect way. I'm stumped as to what I set p.vel_x,y,z so it always accelerates straight instead of curving like it does in the pictures.

Re: Particles in Lite-C that actually works. [Re: DrunkenPirate] #248972
01/30/09 15:41
01/30/09 15:41
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I cant think of any way to make a cloud of particles behave like
a solid block of dots. If I understand you.

The particles 'appear' curving because they are moving straight, but the
ship and camera have moved away on a curve.

Forgive me for explaining the obvious, but its something that can be
mis-understood about how particles behave.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Particles in Lite-C that actually works. [Re: EvilSOB] #249039
01/31/09 09:17
01/31/09 09:17
Joined: Jan 2009
Posts: 34
D
DrunkenPirate Offline OP
Newbie
DrunkenPirate  Offline OP
Newbie
D

Joined: Jan 2009
Posts: 34
That's all I needed to hear, that it couldn't be done. I understand why the particles were curving, I was just trying to stop it!

Re: Particles in Lite-C that actually works. [Re: DrunkenPirate] #249043
01/31/09 09:44
01/31/09 09:44
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Maybe you could attach an animated sprite to the engine vertiex instead.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Particles in Lite-C that actually works. [Re: EvilSOB] #249209
01/31/09 23:35
01/31/09 23:35
Joined: Jan 2009
Posts: 34
D
DrunkenPirate Offline OP
Newbie
DrunkenPirate  Offline OP
Newbie
D

Joined: Jan 2009
Posts: 34
EvilSOB your a GENIUS! I'll try that out ASAP and let you know!

Re: Particles in Lite-C that actually works. [Re: DrunkenPirate] #318728
04/09/10 13:08
04/09/10 13:08
Joined: Apr 2010
Posts: 2
D
dodi Offline
Guest
dodi  Offline
Guest
D

Joined: Apr 2010
Posts: 2
Hello, I think you have to transform the global world velocity vector into the local coordinate system of your entity. My problem was a laser beam shot from my entity to target in a global view.

My solution:

function effect_laser_beam(PARTICLE* p)
{
// set beam in player`s direction
p.vel_x = vec_length(p.x)*cos(player.pan);
p.vel_y = vec_length(p.x)*sin(player.pan);
p.vel_z = 0;

// set lenght of beam
vec_normalize (p.vel_x, random(100));
......

Re: Particles in Lite-C that actually works. [Re: dodi] #318731
04/09/10 13:18
04/09/10 13:18
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline
Senior Member
Razoron  Offline
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Lol, that thread is outdated. Look at the date, 1st February 2009. Read the date first, please.

Re: Particles in Lite-C that actually works. [Re: Razoron] #318734
04/09/10 13:33
04/09/10 13:33
Joined: Apr 2010
Posts: 2
D
dodi Offline
Guest
dodi  Offline
Guest
D

Joined: Apr 2010
Posts: 2
also Lol, your right, should have better look. But the problem might exist today. I spend a lot of hours to solve it and thought it may be helpfull.

Page 3 of 3 1 2 3

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