Have you tried multiplying the child object by it's parent objects matrices?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Justin Krenz
Sent: Sunday, September 18, 2005 10:21 AM
To: [email protected]
Subject: [hlcoders] GetAttachment From Child

I have an object which serves as the parent of another object.  The
child object is often manipulated by changing its local rotation.  The
child object has several attachments on it which I need the position of
in world space.  Whenever I use the normal GetAttachment to get the
attachment position of the child, it returns the position without the
affect of the local rotation on it.  Right now, I have a hack in place
so that whenever I use GetAttachment() of the child, it unparents the
child, gets the attachment position which is correct and in world space,
and reparents the child.  Is there a better way I can do this so that I
don't have to unlink the child each time?

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to