dylantan
Member
|
RE: particles
Finally we got it working!!
We separated the sword into selected parts, then find generated box shape out of it through Item.getBox() function. We used that box shape as the source of particles and then updated the matrix of the particles same as the weapon.
(02-15-2012 05:09 AM)aceio76 Wrote: I think what makes this difficult to answer is that there are a few ways to tackle this.
One way is to code a few "attachment" options on the chr object so you can give any weapon or handheld item any combination of particles that are assigned to that attachment point.
Just to show this possibility, you can utilize something like below to attach particles to a specific attachment bone:
Code:
if(C OrientP *point=cskel.findPoint(Str8(objparticles.bonepoint)))
objparticles.update(Matrix().setPosDir(point->pos, point->cross(), point->dir), false);
The bonepoint is something you place as part of your chr obj skeleton that would appear to be where a held item could be.
Thanks for the idea. Appreciate it very much aceio76!
(This post was last modified: 02-15-2012 01:12 PM by dylantan.)
|
|
02-15-2012 01:09 PM |
|