Game Development Community

Driving Me Crazy: Position fiasco

by Demolishun · in Torque Game Engine · 10/01/2006 (7:54 pm) · 2 replies

Okay, I have an object that is based off of gamebase and I have been piecing together the code to make it work. Right now it is displayable in the sim, can collide, has no physics so it just floats whereever placed and has one really annoying bug that I cannot track down.

Here is the problem: If I go into edit mode "F11" and change select the object and change its position it works. Until I press F11 again to get out of edit mode and press F11 again to get back in. Then the object goes back to its original position when I first selected it.

I have traced through every function I can think of with gdb and cannot find the problem. I also do a sanity check at the end of my position update I check to see if my position matches the position of mObjToWorld. It always matches. Another thing that is strange is I set my object to add a value to z every cycle through. When I toggle F11 twice to get into the editor it sets it back to the original position when I first decided to look at the object! Somehow the editor is setting the values stored in its own widgets and not getting a correct update. But where that occurs I have no idea.

If anyone else has had this problem please let me know.

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
10/01/2006 (7:59 pm)
I think this is a bug in the inspector window. After you move it try deselecting the object and/or switching to another editor mode other than Inspector.
#2
10/01/2006 (8:22 pm)
Well, what trips me out is it does not do it to the wheeledVehicle. So, your saying it is not my bad code? (hopefully)