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?
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?
About the author
Torque Owner David Horn
Thanks!