Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: leafy on February 12, 2011, 07:07:59 pm
-
How would you go about moving an object in a straight line? Axe doesn't support decimals, so how could you calculate slope and use it to move an object?
Or would you have to use trig?
-
Most of the time, we like to have scaled-up values when working internally with the physics and scale them back down when displaying them onscreen. Typically we have 256 represent one pixel (though you can do it any way you want. 256 is probably the fastest number to divide by)
-
Yeah so I was thinking take the unscaled value of the slope between two points (store the rise into one var and run into another) then scale the movement down by 256, but still use the unscaled slope values.