Game Development Community

Mesh/Node position

by David Horn · in Torque X 2D · 08/06/2009 (2:32 pm) · 1 replies

What is the best (or one) way of finding where part of a T2DShape3D model is within a level?

For instance, I want to know where the head of a player is as opposed to his feet.
I noticed that within the T2DShape3D, I have access to meshes, and thetheir centers, objects, nodes, etc. of those meshes.

Would it be something like the Shape.Meshes[2].Center plus the T2DShape3D's world position?
Meshes[2] is my hair mesh I believe.

Or would I be able to put a node in my dts file, link it to the head, and track the position of that somehow?

#1
08/13/2009 (10:03 am)
I apologize for the bump, but I'm really having some difficulties with this. Can anyone offer any ideas?

Thanks!