Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
attach particle to entity? #401145
05/14/12 13:08
05/14/12 13:08
Joined: Apr 2012
Posts: 62
wrekWIRED Offline OP
Junior Member
wrekWIRED  Offline OP
Junior Member

Joined: Apr 2012
Posts: 62
how do i attach an effect to a specific part of an entity? Just like a lit dynamite. The spark should stay on the dynamite's lid. The entity is a physics object which usually change it's rotation in my level when i throw it.

Using effect function i cannot set the particle's position to entity's coordinate since it will probably stay on the entity's origin. Adding offset relative to the entities position sends the particle flying on the wrong position coz entity rotates allot since it's a physics object. And moving the entity in MED to change it's lid as the origin is a bad idea. I use newton dynamic physics and center of mass is usually the entity's origin. I dont want it to stand upsidedown when i throw it.

Re: attach particle to entity? [Re: wrekWIRED] #401146
05/14/12 13:14
05/14/12 13:14
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
imo, easiest to attach to a chosen vertex of the model (select vertex number in MED) by vec_for_vertex()


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: attach particle to entity? [Re: sivan] #401149
05/14/12 13:32
05/14/12 13:32
Joined: Apr 2012
Posts: 62
wrekWIRED Offline OP
Junior Member
wrekWIRED  Offline OP
Junior Member

Joined: Apr 2012
Posts: 62
thanks sivan, i'll try it first thin in the morning.


Moderated by  old_bill, Tobias 

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