RandomTransform

From Director Online Wiki
Jump to: navigation, search
on randomTransform() ------------------------------------------------
  -- OUTPUT: Returns a transform with an arbitrary postition,
  --         rotation and scale, for testing purposes.
  -------------------------------------------------------------------
 
  vTransform          = transform()
  vTransform.position = randomVector() * random(100)
  vTransform.rotation = randomVector() * random(1000)
  vTransform.scale    = randomVector() * random(10)
 
  return vTransform
end randomTransform