Particle Effect
by Yasin · in Torque Game Engine · 05/11/2007 (5:08 am) · 0 replies
Hi all,
I have recently bought engine and practicing through its capabilities. I want to visualize some particle effects spread behind my character.
I have searched through (thanks to week documentation of torque) and find out that there are variables on player class called footPuffEmitter, dustEmitter etc. footPuffEmitter supposed to create particles while character moves. In my game I have initiated a special particle emitter and assigned it to main player as follow. But nothing happened.
datablock PlayerData(PlayerBody)
{
...
footPuffEmitter = LightPuffEmitter;//LightPuffEmitter;
footPuffNumParts = 1000;
footPuffRadius = 0.25;
...
}
In this data block there is LightPuffEmitter datablock which is previously defined. I have tested this particle effect on Map Editor and I am sure it is working and producing sprinkles. Is there any other modifications to make this effect work? Or is there any other way to achieve this special effect?. I was unsure what I am doing because I could not find any sources about this subject.
Imagine that we have an organic character (human, animal etc.). It is very heavy. It is moving on dusty road. We suppose to see some dust particles while it is moving. That is exactly what I try to implement ;).
I appriciate any help...
I have recently bought engine and practicing through its capabilities. I want to visualize some particle effects spread behind my character.
I have searched through (thanks to week documentation of torque) and find out that there are variables on player class called footPuffEmitter, dustEmitter etc. footPuffEmitter supposed to create particles while character moves. In my game I have initiated a special particle emitter and assigned it to main player as follow. But nothing happened.
datablock PlayerData(PlayerBody)
{
...
footPuffEmitter = LightPuffEmitter;//LightPuffEmitter;
footPuffNumParts = 1000;
footPuffRadius = 0.25;
...
}
In this data block there is LightPuffEmitter datablock which is previously defined. I have tested this particle effect on Map Editor and I am sure it is working and producing sprinkles. Is there any other modifications to make this effect work? Or is there any other way to achieve this special effect?. I was unsure what I am doing because I could not find any sources about this subject.
Imagine that we have an organic character (human, animal etc.). It is very heavy. It is moving on dusty road. We suppose to see some dust particles while it is moving. That is exactly what I try to implement ;).
I appriciate any help...
About the author