Phent_settype and Particle Lifespan

Posted By: Valdsator

Phent_settype and Particle Lifespan - 04/08/11 03:58

I have two questions/problems.
#1: I'm trying to use phent_settype to change the collision hull of an object to a sphere. It tells me phent_settype is an undeclared identifier, even though I wrote the code like it is in the manual. I'm using A8, by the way.

#2: Particle lifespan doesn't seem to work. I set the lifespan to 1, but it never disappears. Do I have to do something special for lifespan to actually count down and delete the particle?

Thanks in advance.
Posted By: 3dgs_snake

Re: Phent_settype and Particle Lifespan - 04/08/11 05:12

Hi,

#1: There is no phent_settype in A8. the ph... functions were for the ODE physics engine in A7. If you use A8, you must use the pX... functions (there is a pXent_settype).

#2: Normaly lifespan is automatically decremented so there is nothing you need to do. Copy past the particle demo on the manual to see why yours is not working.

Best regards.
Posted By: Uhrwerk

Re: Phent_settype and Particle Lifespan - 04/08/11 14:00

To your second question: Did you remember to set a different event for the particle so that the lifespan is not reset to 1 every frame?
Posted By: Valdsator

Re: Phent_settype and Particle Lifespan - 04/08/11 20:40

Alright then, I'll use PhysX, and the lifespan works now that I've set an event.

Thanks to you both! laugh
© 2023 lite-C Forums