MagneticFieldComponentData interface
Data specification for MagneticFieldComponent, see ComponentManager.create() on how to create a component
Signature:
export interface MagneticFieldComponentData extends Component3DData
Extends: Component3DData
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
color? | number | (Optional) Color of the magnetic field. Defaults to 0x000000 | |
id? | string | (Optional) if not provided, an auto id will be generated | |
name? | string | (Optional) name for the component. Defaults to "" | |
position? | XYZ | (Optional) Position of the magnetic field. Defaults to {x: 0, y: 0, z: 0} | |
radius? | number | (Optional) Radius of the magnetic field. Defaults to 1 | |
rotation? | XYZ | (Optional) Rotation of the magnetic field. Defaults to {x: 0, y: 0, z: 0} | |
type | "magenticfield" |