On Oct 5, 2006, at 7:02 AM, Joseph Nastasi wrote:
This is very neat. I haven't had the time to work on it, but I'm
wondering how you would "attach" this particle generator to an arm
holding a gun, lets' say, and change it's position and orientation.
My first thought is that you have to do it per particle since there
is no overall Group3D to rotate and translate.
One way I can think of is to add a Group3D property to the
TrimeshParticles class. In the Constructor, Append every Particle to
that Group3D and add the group to the RB3Dspace. Now you should be
able to rotate the entire Group3D and the particles will follow
along. Be sure to also remove the Group3D from the RB3Dspace after
the particles are dead.
The only reason why you need to add the Group3D to the RB3Dspace is
that I've found that, unlike Object3Ds, Group3Ds don't seem to update
unless they're in the RB3Dspace itself. I've only tested this for
rotation; I haven't tried translation. Scaling don't seem to work for
Group3Ds.
==
Jeff Quan
jquan at mindspring dot com
http://www.jcquan.com/JQportfolio
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|