Game Development Community

How to mount a particle on a player's head?

by weihua · in Torque 3D Professional · 05/04/2010 (11:09 pm) · 2 replies

I tried this resource: http://www.torquepowered.com/community/resources/view/10893
It seems old and I got an error on this line:

U32 mountNode = mDataBlock->shape->findNode(slotName);

error C2039: 'shape' : is not a member of 'ShapeBaseData'


I tried this too: http://www.torquepowered.com/community/resources/view/8156
But I didn't see any effects.

Is there some simple way to mount a particle on player ?

Thanks in advance!

#1
05/04/2010 (11:24 pm)
I changed shape to mShape in the first resource. It is compiled ok.
But I when I created a particle and mounted it. It still won't moving with my player. Could anybody give me some advice? Thanks :)
#2
05/04/2010 (11:44 pm)
Problem solved. It seems that I have to rebuild the whole project.
Not the particle can move along with my player now :-)

But I still have the question: Is there any offical solution for this "mount on player" problem?

Thanks!