[Sandy] [sandy commit] r971 - Adds a removeChild() method to Node.
Russell Weir
damonsbane at gmail.com
Fri Mar 13 05:30:51 PST 2009
Of course, the helmet is a stupid example, since anyone that connected a
helmet to the tag_head needs their own head examined... BUT you could have a
decorative shirt collar that conneccted at the tag_head that would follow
the torso.
R
On Fri, Mar 13, 2009 at 6:23 AM, Russell Weir <damonsbane at gmail.com> wrote:
> Yeah, this is where it might get fuzzy, cause you could potentially have
> multiple shapes per tag. A helmet on a head could just as easily be tagged
> to connect to the torso at tag_head, as it could be tagged to connect to the
> head at tag_helmet, for example. The only difference there being what origin
> and rotation the helmet has for a parent, but the result would be the same.
>
> The positions/rotation are all relative to the parent tag. This is one
> frame of tags from a quake model, just for reference.
>
> HEAD
> ===================================================================
> Found tag_head origin: {0,0,0} matrix: sandy.core.data.Matrix4 (1
> 8.896787306866827e-9 1.178770503429405e-8 0 2.2909134145265853e-8 1
> 1.240281477521421e-8 0 1.9061673128817347e-8 -6.111935846320193e-9 1 0 0 0 0
> 1 )
> ===================================================================
>
> TORSO
> ===================================================================
> Found tag tag_head origin: {0,12.704083872425539,-5.863423325734864}
> matrix: sandy.core.data.Matrix4 (0.7527379989624023 -0.19440150260925293
> -0.6289620995521545 0 0.12779392302036285 0.9803805351257324
> -0.1500759869813919 0 0.6457973718643188 0.03259033337235451
> 0.7628129720687866 0 0 0 0 1 )
> Found tag tag_weapon origin:
> {-25.408167744851077,14.65855831433716,-11.726846651469728} matrix:
> sandy.core.data.Matrix4 (-0.35853976011276245 0.029872911050915718
> 0.9330363273620605 0 0.5092461705207825 0.8439307808876038
> 0.16866903007030487 0 -0.782379150390625 0.5356197357177734
> -0.3177962303161621 0 0 0 0 1 )
> Found tag tag_torso origin: {0,0,0} matrix: sandy.core.data.Matrix4 (1 0 0
> 0 0 1 0 0 0 0 1 0 0 0 0 1 )
> ===================================================================
>
> LEGS
> ===================================================================
> Found tag tag_torso origin: {0,13.68132109338135,3.9089488838232427}
> matrix: sandy.core.data.Matrix4 (0.9999247789382935
> -0.0000011363330258973292 -0.012261735275387764 0 0.009485427290201187
> 0.6337706446647644 0.7734628915786743 0 0.0077702379785478115
> -0.7735210657119751 0.6337230205535889 0 0 0 0 1 )
> ===================================================================
>
>
>
>
>
>
> On Fri, Mar 13, 2009 at 6:14 AM, Makc <makc.the.great at gmail.com> wrote:
>
>> On Fri, Mar 13, 2009 at 3:13 PM, Makc <makc.the.great at gmail.com> wrote:
>> > On Fri, Mar 13, 2009 at 2:52 PM, Russell Weir <damonsbane at gmail.com>
>> wrote:
>> >> so a simple
>> >> addChild() doesn't leave room for what tag name you want to connect to.
>> >
>> > don't we have getChildByName() already? you could just name your
>> > would-be AnimatedShape3D with tag names
>> >
>>
>> ...that is, unless tere are multiple shapes per tag (I dont think
>> so?), then transformgroups make more sense.
>>
>> _______________________________________________
>> Sandy mailing list
>> Sandy at osflash.org
>> http://osflash.org/mailman/listinfo/sandy_osflash.org
>>
>
>
More information about the Sandy
mailing list