Game Development Community

Script updating

by Bauer Ren · in Torque Game Engine · 06/11/2006 (1:25 pm) · 2 replies

If i use several times obj.setTransform in a schedule, the object (obj) not moves smoothly. I can use the schedule every 30 ms but, the update is not smoothly. I tried with StaticShape.

I saw with the Class Item, that torque can move really smoothly. It seems, that the smooth moving in the Item Class is implemented in C++.

Can I generate smooth movings in Scripting?
Can I program in the engine, that StaticItem more often refreshes? (Which type of method makes this in Torque)?
How can I move an Object direct in C++ (What I have to insert in Process Ticket?)

Is there a ressource that explains the whole thing?

Thanks for reply.

Rene

#1
06/11/2006 (2:30 pm)
You cannot do proper, and should not do object movement in script. There is a resource called Pathshape that lets you smoothly move objects along a path. Otherwise you will have to code what it is you want in the process/interpolateTick functions in C++, and looking at what is already there on classes in the engine would be the best idea.
#2
06/12/2006 (12:21 am)
What is interpolateTick?

Thanks for reply