Game Development Community

Relationship Problems / InteriorInstance - PathedInterior

by Badguy · in Torque Game Engine · 11/15/2002 (3:33 am) · 1 replies

hmm .. I'm having a problem here..
I cant find a decent relationship between these objects ..
now that my InteriorInstance has spawned the door..
I need to keep track during any movement that InteriorInstance will make..

so that the door can use the center position of the InteriorInstance to calculate the proper angles, for the rotating door.
(if the InteriorInstance has been rotated this is necessary)

there is no way for me to reach up in the heirachy at this point any suggestions on how to do this?

P.S. the door is fixed and now does path following and rotation based on path nodes properly ..
Providing I can find a way to get this info across.

so next up are the displace Object and Lighting .. maybe shadows?

Edit:
Ok how bout if I store in InteriorInstance a var that is bool if this InteriorInstance has had addChildren run for it..
(which would need to be exported to console and stored in mission)
then if so when InteriorInstance::setTransform is called simply find object based on group name of object and call a provided update the center function

I really hate to mess with InteriorInstance like that ... is there a better way to do this?

#1
11/15/2002 (6:11 am)
Update:
Ok instead of that last one Ive decided instead to use the grouping and reach it that way ..
which means I will have to force a recalculate angles each time you disable the editor ...