You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
Function PositionPhyEmitterNonCull(EmitterID as integer, x as float, y as float, z as float)
// Duke E, 100601
// Position DP emitters so the parented object is within the screen.
// Due to the vertex projection used the emitters Parent object has to be in screen or else
// the DBPro engine culls the Parent object excluding all vertexes projected.
// In the Emitter creation code add (after Phy Make Particle Emitter):
// Set Object radius EmitterNumber,-1
// Note: If you reuse the same emitter and repositions it outside the screen when it is unused instead of deleting it,
// do NOT use this function, Instead position it with the normal Phy Set Emitter Position command.
if Not Object In Screen( EmitterID )
Position Object EmitterID, x, y, z
Phy Set Emitter Position EmitterID, x-Object Position X(EmitterID), y-Object Position Y(EmitterID), z-Object Position Z(EmitterID)
Login to post a reply