Shadowfloorcomponent

ShadowFloorComponent class

Represents a component that adds a transparent floor that support shadows.

* See for the data schema used to create a platform component

Signature:

export declare class ShadowFloorComponent extends Component3D<ShadowFloorComponentData> 

Extends: Component3D<ShadowFloorComponentData>

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ShadowFloorComponent class.

Properties

PropertyModifiersTypeDescription
collisionanyThe collision mesh associated with the shadow floor.
onCollisionCallback(player: any, collision: any) => voidThe callback function called when a collision occurs.

Methods

MethodModifiersDescription
dispose()Disposes the component.
init()Initializes the component.