Game Development Community

T3D 1.1 Beta 3 - TSStatic does not update on setTransform - NOT A BUG

by Marcus L · in Torque 3D Professional · 12/29/2010 (10:54 pm) · 6 replies

Build: 1.1 Beta 3 Pro

Platform: Windows 7 Ultimate 64 bit

Target: Networking, In-game

Issue: Not sure if it was intended, but apparently TSStatics' does not update properly on setPosition.

Steps to repeat:
1. Create a TSStatic
2. Go to the console and type objID.setTransform(playerID.getTransform());
3. Server object is moved, but client stays the same

Suggested Fix: Make TSStatics' update on setTransform. Here are the fixed files for those who want

#1
01/10/2011 (8:28 pm)
Logged as THREED-1321.
#2
01/11/2011 (11:33 pm)
Greetings!

I'm fairly certain that TSStatic is not intended to be moved once placed (excluding mission editing, of course). It is quite a light class and should probably stay that way.

You could derive your own version from it and add in the transform network bits. But do keep in mind that there is no client-side interpolation, so the object will pop to its new position if you're continuously moving it.

- Dave
#3
01/12/2011 (12:24 am)
Yeah, thats why i wrote wasn't sure it was a bug or not.

Quote:You could derive your own version from it and add in the transform network bits.
Which is just what i did in the files i posted :P
Just had to make sure it wasn't a bug.
#4
01/13/2011 (2:27 pm)
Or you can revert to the old trick to modify the scale of the object to make it 'dirty'.

What I did is modify the scale twice, once to modifiy it and once to restore it (because setting the scale to the already scale value will be ignored).

Nicolas Buquet
www.buquet-net.com/cv/
#5
01/27/2011 (4:19 pm)
Catching up on some bugs that got logged during the spin up. Dave's right, TSStatic isn't intended to be moved. Marked as not a bug and moved to T3D General.
#6
01/27/2011 (4:22 pm)
Thanks for the clarification Scott, was just wondering why i couldn't see the effect of .setTransform