Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 667 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Phent_settype and Particle Lifespan #366934
04/08/11 03:58
04/08/11 03:58
Joined: Mar 2009
Posts: 186
V
Valdsator Offline OP
Member
Valdsator  Offline OP
Member
V

Joined: Mar 2009
Posts: 186
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.

Last edited by Valdsator; 04/08/11 03:58.
Re: Phent_settype and Particle Lifespan [Re: Valdsator] #366937
04/08/11 05:12
04/08/11 05:12
Joined: Feb 2010
Posts: 320
TANA/Madagascar
3dgs_snake Offline
Senior Member
3dgs_snake  Offline
Senior Member

Joined: Feb 2010
Posts: 320
TANA/Madagascar
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.

Re: Phent_settype and Particle Lifespan [Re: 3dgs_snake] #366980
04/08/11 14:00
04/08/11 14:00
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
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?


Always learn from history, to be sure you make the same mistakes again...
Re: Phent_settype and Particle Lifespan [Re: 3dgs_snake] #367026
04/08/11 20:40
04/08/11 20:40
Joined: Mar 2009
Posts: 186
V
Valdsator Offline OP
Member
Valdsator  Offline OP
Member
V

Joined: Mar 2009
Posts: 186
Alright then, I'll use PhysX, and the lifespan works now that I've set an event.

Thanks to you both! laugh


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1