checkSphereTouch

Platform Compatibility PC Mac OSX Oculus Quest X X X Check if two mathematical spheres intersect (1), touch (0), or are not touching at all (-1) Parameters: posA A string value sizeA A float value posB A string value sizeB A float value returns an Integer (whole number) value Example: 1obj.checkSphereTouch(posA, sizeA, posB, sizeB)

qarpVector

Platform Compatibility PC Mac OSX Oculus Quest X X X Get a qarp Vector2 or Vector3 back from a, b, and c Parameters: start A string value mid A string value end A string value t A float value returns a String (text) value Example: 1obj.qarpVector(start, mid, end, t)

qarp

Platform Compatibility PC Mac OSX Oculus Quest X X X Get a qarp result between a, b, and c Parameters: start A float value mid A float value end A float value t A float value returns a Float (decimal number) value Example: 1obj.qarp(start, mid, end, t)

lerpVector

Platform Compatibility PC Mac OSX Oculus Quest X X X Get a lerp Vector2 or Vector3 back from a and b Parameters: start A string value end A string value t A float value returns a String (text) value Example: 1obj.lerpVector(start, end, t)

lerp

Platform Compatibility PC Mac OSX Oculus Quest X X X Get a lerp result between a and b Parameters: start A float value end A float value t A float value returns a Float (decimal number) value Example: 1obj.lerp(start, end, t)

roundToDP

Platform Compatibility PC Mac OSX Oculus Quest X X X Round to a certain number of decimal places Parameters: num A float value dp Optional An integer value returns a Float (decimal number) value Example: 1obj.roundToDP(num, dp = 2)

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: 1234obj.scaleVector2(x, y, z, x2, y2) –Also works like this obj.scaleVector2(x, y, z, scale)

scaleVector3

Platform Compatibility PC Mac OSX Oculus Quest X X X Scale XYZ to XYZ2 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 String (text) value Example: 1234obj.scaleVector3(x, y, z, x2, y2, z2) –Also works like this: … Read more scaleVector3

degToRad

Platform Compatibility PC Mac OSX Oculus Quest X X X Degrees to rad Parameters: deg A float value returns a Float (decimal number) value Example: 1obj.degToRad(deg)

radToDeg

Platform Compatibility PC Mac OSX Oculus Quest X X X Radians to deg Parameters: rad A float value returns a Float (decimal number) value Example: 1obj.radToDeg(rad)