Luca Masera wrote:

> Sent: 07 September 2004 14:15
> To: flightgear-devel
> Subject: [Flightgear-devel] Particle system with FlightGear
> 
> 
> Hi,
> 
> I'm trying to add a Particle System to FlightGear to create 
> smoke and fire. The way I chose is the same as the one used 
> by the submodel system. To create the particles I'm using the 
> ssgaParticleSystem defined into PLIB. 
> 
> However I got some problems about the placement of the new 
> object. Where are defined the coordinates into the virtual 
> world? I've found that every new object inherit the 
> coordinates of the airplane when it's created 
> (_user_lat_node->getDoubleValue(), 
> _user_lon_node->getDoubleValue() ... are stored into the IC 
> struct), but they are defined with lat, lon and alt. Will 
> they be converted into another class? 

No - sub models are instantiated using the current model parameters,
modified by offsets in position, angle and speed. as you describe, and then
move according to the forces acting on them (gravity, buoyancy, wind and
drag. These forces modify the original position, and are not converted into
any other co-ordinate system

> Additionally there's another problem. When the particle 
> system is created it needs a 3D vector defining x, y and z. 
> How this could be connected with the data obtained from the 
> airplane and, this could involve a relocation of the whole object?

You'll need to calculate that.


Regards,

Vivian




_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to