removeCollider
Platform Compatibility PC Mac OSX Oculus Quest X X X Remove a collider from the object Example: 1obj.removeCollider()
McMaster University Virtual Reality Simulation and Research
Articles for coding in Artspark
Platform Compatibility PC Mac OSX Oculus Quest X X X Remove a collider from the object Example: 1obj.removeCollider()
Platform Compatibility PC Mac OSX Oculus Quest X X X Add or resize a generic box collider with optional X,Y,Z and optional size if we have no collider, default size is 1f Parameters: moveCenter Optional A boolean value x Optional A float value y Optional A float value z Optional A float value setSize Optional … Read more boxCollider
Platform Compatibility PC Mac OSX Oculus Quest X X X Add a mesh collider if we have a mesh renderer and no collider Example: 1obj.addCollider()
Platform Compatibility PC Mac OSX Oculus Quest X X X Try to flip the model normal values (eg: inside-out) Example: 1obj.reverseNormals()
Platform Compatibility PC Mac OSX Oculus Quest X X X Set mesh enabled? Parameters: _tf A boolean value Example: 1obj.enableMesh(_tf)
Platform Compatibility PC Mac OSX Oculus Quest X X X Mesh is enabled? returns a Boolean (true or false) value Example: 1obj.getMeshEnabled()
Platform Compatibility PC Mac OSX Oculus Quest X X X Set the color of an object if it accepts one Parameters: color A string value to represent the color in R,G,B or R,G,B,A Example: 123456789101112obj.setMeshColor("1,0.5,0.25,0.1") –Another way to do this using variables –100% red red = 1 –50% green green = 0.5 –25% blue blue … Read more setMeshColor
Platform Compatibility PC Mac OSX Oculus Quest X X X Returns the color of this object in R,G,B,A format. returns a String (text) value 12–Print the color of this object to console obj.debugLog(obj.getMeshColor())
Platform Compatibility PC Mac OSX Oculus Quest X X X Get the text object size Parameters: index Optional An integer value Example: 1obj.get3DTextSize(index)
Platform Compatibility PC Mac OSX Oculus Quest X X X Get the text object color Parameters: index Optional An integer value returns a String (text) value Example: 1obj.get3DTextColor(index)