Class: BoxColliderShape
Defined in: src/components/shape/BoxColliderShape.ts:13
Box shaped collision body. It is a basic box shaped primitive collision body.
Extends
Constructors
Constructor
new BoxColliderShape():
BoxColliderShape
Defined in: src/components/shape/BoxColliderShape.ts:19
Returns
BoxColliderShape
Overrides
Accessors
shapeType
Get Signature
get shapeType():
ColliderShapeType
Defined in: src/components/shape/ColliderShape.ts:73
Returns
Inherited from
center
Get Signature
get center():
Vector3
Defined in: src/components/shape/ColliderShape.ts:92
The position of the collision object in the local space of the object.
Returns
Set Signature
set center(
value):void
Defined in: src/components/shape/ColliderShape.ts:96
Parameters
value
Returns
void
Inherited from
size
Get Signature
get size():
Vector3
Defined in: src/components/shape/ColliderShape.ts:105
The size of the collision body in the X, Y, and Z directions.
Returns
Vector3
Set Signature
set size(
value):void
Defined in: src/components/shape/ColliderShape.ts:109
Parameters
value
Returns
void
Inherited from
halfSize
Get Signature
get halfSize():
Vector3
Defined in: src/components/shape/ColliderShape.ts:117
Half the size of the collision body.
Returns
Inherited from
Methods
setFromCenterAndSize()
setFromCenterAndSize(
ct?,sz?):this
Defined in: src/components/shape/ColliderShape.ts:83
Set the position and size of collision objects
Parameters
ct?
The position of the collision object in the local space of the object.
sz?
The size of the collision body in the X, Y, and Z directions.
Returns
this
Inherited from
ColliderShape.setFromCenterAndSize
transformNormal()
statictransformNormal(invMatrix,n,out):Vector3
Defined in: src/components/shape/ColliderShape.ts:158
Transform a local-space normal to world space with the inverse transpose of the local → world matrix. See MeshRaycast.transformNormal.

