Changing movement physics?
by Eric South · in Torque 3D Professional · 04/15/2012 (8:36 pm) · 4 replies
I've got movement setup like the RTS tutorial, where users will leftclick and the player will move to that location. That works, however there are some things about movement that I would like to remove.
When clicking, the player moves slowly then accelerates to top speed until it gets to the marker and while it approaches the marker, it slows down and "slides" a little. Is it possible/what would be required to remove the acceleration, slowing and sliding so that the player moves at max speed to that point and stops abruptly?
When clicking, the player moves slowly then accelerates to top speed until it gets to the marker and while it approaches the marker, it slows down and "slides" a little. Is it possible/what would be required to remove the acceleration, slowing and sliding so that the player moves at max speed to that point and stops abruptly?
#2
04/16/2012 (10:21 am)
That was very helpful, indeed. Could I ask where you got that? I can't seem to find any documentation that goes into the functions THAT well.
#3
And looks for the sites hosted by garage games like this one:
docs.garagegames.com/tge/official/content/documentation/Reference/Console%20Obje...
That is the third result when googling:
setmovedestination torque
If it doesn't come up with anything try adding more keyword like Reference or script :P
I haven't found another way to access those pages but they are pretty useful. You could also check out the TDN
or the Documentation for TGE
Or the T3D documentation
Although i find the T3D one confusing, and seems to favor the coders. Which i don't blame them! Since coders need more insight to the engine than a scripter does :)
Edit: Oh yeah should probably place a warning here. Although the documentation in those links is mostly fine, it is from all the way back at TGE so do keep in mind that some of the documentation might be outdated. E.g. the containerraycast function has an additional parameter in T3D specifying whether to search on server or clientside. :)
04/16/2012 (1:21 pm)
Oh yeah ofc! Well, i just google [function name] torque.And looks for the sites hosted by garage games like this one:
docs.garagegames.com/tge/official/content/documentation/Reference/Console%20Obje...
That is the third result when googling:
setmovedestination torque
If it doesn't come up with anything try adding more keyword like Reference or script :P
I haven't found another way to access those pages but they are pretty useful. You could also check out the TDN
or the Documentation for TGE
Or the T3D documentation
Although i find the T3D one confusing, and seems to favor the coders. Which i don't blame them! Since coders need more insight to the engine than a scripter does :)
Edit: Oh yeah should probably place a warning here. Although the documentation in those links is mostly fine, it is from all the way back at TGE so do keep in mind that some of the documentation might be outdated. E.g. the containerraycast function has an additional parameter in T3D specifying whether to search on server or clientside. :)
#4
Torque console objects
04/16/2012 (1:29 pm)
Found the script reference which is IMO the most valuable one:Torque console objects
Torque Owner Lukas Joergensen
WinterLeaf Entertainment
Hope it helps.