Game Development Community

Do nodes have length?

by Daniel Buckmaster · in Torque Game Engine · 11/10/2007 (8:04 am) · 2 replies

Just what the title says. I'm doing some stuff with procedural animation, and I need to know what lengths the bones in a model are. Is there a way to do this other than just getting the distances between nodes when the model is added and storing them?

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
11/10/2007 (9:48 am)
Nodes does not have length no. Only way to get the "length" is to get the distance between parent/child nodes. (which may get pretty messy and incorrect if you have several children to a parent, but it depends on your needs).
#2
11/10/2007 (1:09 pm)
I guess the engine would need to be changed to support this, not to mention DTS exporters. Yeah, bones with several children could get odd. I think, though, that telling my modelers to make sure each bone in their characters' arms only has one child wouldn't go down too badly...