Interface: ICustomObject
Beta
This interface encasulate a Object3D, and made it possible to add flags to it. It might be extended with more flags in the future.
Accessors
isPartOfBoundingBox
Get Signature
get isPartOfBoundingBox():
boolean
Beta
Get whether it should be part of the combined bounding box or not. Default is true.
Returns
boolean
Defined in
packages/utilities/src/customObject/ICustomObject.ts:26
object
Get Signature
get object():
Object3D
<Object3DEventMap
>
Beta
Get the Object3D
Returns
Object3D
<Object3DEventMap
>
Defined in
packages/utilities/src/customObject/ICustomObject.ts:19
shouldPick
Get Signature
get shouldPick():
boolean
Beta
Get whether it should be picked by the camera manager Default is false.
Returns
boolean
Defined in
packages/utilities/src/customObject/ICustomObject.ts:33
shouldPickBoundingBox
Get Signature
get shouldPickBoundingBox():
boolean
Beta
Set or get whether it should be also give the bounding box when picked by the camera Default is false.
Returns
boolean
Defined in
packages/utilities/src/customObject/ICustomObject.ts:40
useDepthTest
Get Signature
get useDepthTest():
boolean
Beta
Get whether it should be rendered with depth test (on top on other objects) Default is true.
Returns
boolean
Defined in
packages/utilities/src/customObject/ICustomObject.ts:47
Methods
beforeRender()
beforeRender(
camera
):void
Beta
Parameters
• camera: PerspectiveCamera
Returns
void
Defined in
packages/utilities/src/customObject/ICustomObject.ts:69
getBoundingBox()
getBoundingBox(
target
):Box3
Beta
Parameters
• target: Box3
Returns
Box3
Defined in
packages/utilities/src/customObject/ICustomObject.ts:53
intersectIfCloser()
intersectIfCloser(
intersectInput
,closestDistance
):undefined
|CustomObjectIntersection
Beta
Parameters
• intersectInput: CustomObjectIntersectInput
• closestDistance: undefined
| number
Returns
undefined
| CustomObjectIntersection