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 |
|---|---|---|---|
|
number |
(Optional) Color of the magnetic field. Defaults to 0x000000 | ||
|
string |
(Optional) if not provided, an auto id will be generated | ||
|
string |
(Optional) name for the component. Defaults to "" | ||
|
(Optional) Position of the magnetic field. Defaults to {x: 0, y: 0, z: 0} | |||
|
number |
(Optional) Radius of the magnetic field. Defaults to 1 | ||
|
(Optional) Rotation of the magnetic field. Defaults to {x: 0, y: 0, z: 0} | |||
|
"magenticfield" |