or just rotate the emitter around a point/object...
require("scripts/class")
local class=CreateClass(...)
function class:CreateObject(model)
local object=self.super:CreateObject(model)
SetWorld(fw.transparency.world)
object.emitter=CreateEmitter(500,5000,Vec3(1,0,1))
object.emitter:SetParent(object.model)
object.emitter:Paint(LoadMaterial("abstract::smoke.mat"))
object.emitter:SetColor(Vec4(1,0,0,1))
object.emitter:SetRadius( .3, .01 )
object.emitter:SetPosition(Vec3(model.position.x+2,model.position.y,model.position.z),1)
SetWorld(fw.main.world)
function object:Update()
TurnEntity(object.model,Vec3(0,-10,0))
end
function object:Free()
object.emitter:Free()
self.super:Free()
end
end
EDIT--- added radius setting to allow you to see the emitter