Mouse3DPoint

Platform Compatibility PC Mac OSX Oculus Quest X X – Get the 3D point of whatever we hit by clicking the mouse Parameters: layers A string value hitTriggers Optional A boolean value whether we detect clicks on trigger colliders returns a String (text) value Example: 1obj.Mouse3DPoint(layers, hitTriggers)

OverlapSphere

Platform Compatibility PC Mac OSX Oculus Quest X X X Get a list of indexes of objects we overlap within a sphere Parameters: pos A string value for X,Y,Z radius A float value for how big to make the sphere layers A string value separated by commas using the Object layers hitTriggers Optional A boolean … Read more OverlapSphere

Raycast

Platform Compatibility PC Mac OSX Oculus Quest X X X Perform a raycast and get the stored object number back, optionally store the hit position if the raycast hits something. Returns -1 if nothing is hit by the raycast. Think of a raycast as a laser beam that reports the first object it collides with. … Read more Raycast

collideTrigger

Platform Compatibility PC Mac OSX Oculus Quest X X X Parameters: _tf A boolean if the collider is a trigger or not Example: 12–Set collider to be a trigger obj.collideTrigger(true) More about Triggers and Colliders Artspark supports two forms of collider shapes: Colliders and Triggers. Colliders Colliders are solid and any object obeying the physics … Read more collideTrigger

getColliderEnabled

Platform Compatibility PC Mac OSX Oculus Quest X X X Are we colliding? returns a Boolean (true or false) value Example: 1obj.getColliderEnabled()

isTrigger

Platform Compatibility PC Mac OSX Oculus Quest X X X This returns whether the object is a trigger or not. returns a Boolean (true or false) value More about Triggers and Colliders Artspark supports two forms of collider shapes: Colliders and Triggers. Colliders Colliders are solid and any object obeying the physics engine will automatically … Read more isTrigger

enableCollider

Platform Compatibility PC Mac OSX Oculus Quest X X X Parameters: _tf A boolean if the collider is enabled or not Example: 12–Enable the collider obj.enableCollider(true) More about Triggers and Colliders Artspark supports two forms of collider shapes: Colliders and Triggers. Colliders Colliders are solid and any object obeying the physics engine will automatically be … Read more enableCollider

Collision

When Collision events will occur onCollisionEnter and onCollisionExit functions will occur in the following situations of objects coming into contact: Our Object Other Object Object with a Solid Collider and no Rigidbody Object with a Solid Collider and Non-Kinematic Rigidbody Object with a Solid Collider and a Non-Kinematic Rigidbody Object with a Solid Collider and … Read more Collision

getVelocity

Platform Compatibility PC Mac OSX Oculus Quest X X X Get the velocity of rigidbody returns a String (text) value Example: 1obj.getVelocity()

setVelocity

Platform Compatibility PC Mac OSX Oculus Quest X X X Set the velocity of rigidbody Parameters: vel A string value for velocity in X,Y,Z Example: 1234obj.setVelocity(vel) –Also works as obj.setVelocity(x, y, z)