Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Math
  5. scaleVector2

scaleVector2

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Scale XY to XY2

Parameters:

  • x
    • A float value
  • y
    • A float value
  • z
    • A float value
  • x2
    • A float value
  • y2
    • A float value

returns a String (text) value

Example:

1
2
3
4
obj.scaleVector2(x, y, z, x2, y2)

--Also works like this
obj.scaleVector2(x, y, z, scale)
Tags
Was this article helpful to you? Yes No

How can we help?