Game Development Community

Drop at centroid via script

by Randy VonDrasek · in Torque Game Engine · 06/07/2006 (2:45 pm) · 1 replies

I've been creating objects in the world editor using the "drop at centroid" options and I was wondering if it's possible to drop a new object at centroid when I create it inside a function. I've looked in the documentation and on the forums and haven't seen anything that shows you how to do this. Does anyone know if this can be done? If so, how do you do it?

#1
07/08/2006 (2:38 pm)
If you know the name of the centroid, or have a reference to it, just get the postion and rotation of it, and set the object you are adding via scripting to that position and rotation. Make sense?