Game Development Community

%scale

by rennie moffat · in Torque Game Builder · 09/23/2009 (3:07 pm) · 6 replies

setForceScale(%scale)


what is the scale? why not just have a float (which it is) that is a single number like 1? With scale I get the idea it needs to or is multiplied by something somewhere.

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
09/23/2009 (5:27 pm)
Scale can be fractional force, too.
#2
09/23/2009 (5:40 pm)
where a float is only one? ( a whole number). Both are made up of a float. or determined to be by so other floats like velocity can have 0.5 so what's the diff between say scale and force?
#3
09/23/2009 (6:08 pm)
setForceScale() adjusts how much physics affects the object in question. If it's set higher than 1, this object is affected that many times more by any physics. Set it to below 1, and it becomes harder to move. Zero should make it immovable, but I haven't tested that :)
#4
09/23/2009 (6:33 pm)
So when you say Physics, do you mean gravity essentially, but me think you could change direction of the force?



edit.
oops,
sorry,
I noticed physics type. so gravity, wind, massive wall bounce?
#5
09/24/2009 (2:18 pm)
Yep, gravity and collisions (wind could be included in either, I guess).
#6
09/24/2009 (3:17 pm)
hydrogen and oxygen atoms it is.

thanks!