BoxShape
ClassA box collision shape.
- Available on all platforms
Since Lens Scripting v157
Index
Properties
Methods
Extends
Properties
size
size:
vec3
The size of the box on each local axis.
Since
Lens Scripting Version 157
Default Value
(15, 15, 15)
Methods
createBoxShape()
staticcreateBoxShape():BoxShape
Create a BoxShape with default settings.
Returns
BoxShape
Since
Lens Scripting Version 157
Inherited from
createCapsuleShape()
staticcreateCapsuleShape():CapsuleShape
Create a CapsuleShape with default settings.
Returns
Since
Lens Scripting Version 157
Inherited from
createConeShape()
staticcreateConeShape():ConeShape
Create a ConeShape with default settings.
Returns
Since
Lens Scripting Version 169
Inherited from
createCylinderShape()
staticcreateCylinderShape():CylinderShape
Create a CylinderShape with default settings.
Returns
Since
Lens Scripting Version 169
Inherited from
createLevelsetShape()
staticcreateLevelsetShape():LevelsetShape
Create a LevelsetShape with default settings.
Returns
Since
Lens Scripting Version 157
Inherited from
createMeshShape()
staticcreateMeshShape():MeshShape
Creates a new MeshShape.
Returns
Since
Lens Scripting Version 181
Example
// Change gravity in the root world.
Physics.getRootWorldSettings().gravity = new vec3(0.0, -100.0, 0.0);
Inherited from
createSphereShape()
staticcreateSphereShape():SphereShape
Create a SphereShape with default settings.
Returns
Since
Lens Scripting Version 157
Inherited from
getTypeName()
staticgetTypeName():TypeName<BoxShape>
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<BoxShape>
Since
Lens Scripting Version 157
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean