Scripting

Search The Documentation:

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

distVector3

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Distance between two points in 3D

Parameters:

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

returns a Float (decimal number) value

Example:

1
obj.distVector3(x, y, z, x2, y2, z2)
Tags
Was this article helpful to you? Yes No

How can we help?