Difference between revisions of "Rotating an object around another object with a script"
Rotating an object around another object with a script (edit)
Revision as of 21:58, 2 April 2007
, 21:58, 2 April 2007no edit summary
imported>Indefiance |
imported>Indefiance |
||
Line 66: | Line 66: | ||
short boolean | short boolean | ||
short zboolean | short zboolean | ||
and add this following code right after setting the mods, and before setting the players position (thats where I put it at least). The .2 value determines the speed at which the object oscillates on the mod_z and hdist dimensions, a larger value will cause the object to oscillate quickly, a smaller value subsequently means it will oscillate slowly. | and add this following code right after setting the mods, and before setting the players position (thats where I put it at least). The .2 value determines the speed at which the object oscillates on the mod_z and hdist dimensions, a larger value will cause the object to oscillate quickly, a smaller value subsequently means it will oscillate slowly. |