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
Property | Modifiers | Type | Description |
---|---|---|---|
collision | any | The collision mesh associated with the shadow floor. | |
onCollisionCallback | (player: any, collision: any) => void | The callback function called when a collision occurs. |
Methods
Method | Modifiers | Description |
---|---|---|
dispose() | Disposes the component. | |
init() | Initializes the component. |