Game Development Community

setTransform() and refresh problem

by Samaursa · in Technical Issues · 07/14/2009 (7:01 am) · 1 replies

I am having a problem with setTransform on a Static object. I am writing scripts that allow easy placement of hundreds of items under simgroups. When I do use setTransform on a static object, the marker and bounding box moves, but the object itself stays where it is. When I click on the marker and move it is when it updates the object. Is there a function I should be calling in the console (and eventually in the script) to update the object after it has been moved?

#1
08/27/2009 (6:30 am)
Try to create a StaticShapeData like below. and use it in your mission file instead of TSStatic. This problem happened to me and it's solved this way. TSStatic instances want to stay static. :)
datablock StaticShapeData(ssdTest)
{
shapeFile = "~/data/shapes/shapefile.dts";
};