BulletComponentData interface
Data specification for BulletComponent, see ComponentManager.create() on how to create a component
Signature:
export interface BulletComponentData extends Component3DData
Extends: Component3DData
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
(Optional) Direction of the bullet path. Defaults to {x: 0, y: 0, z: 1} | |||
string |
(Optional) if not provided, an auto id will be generated | ||
string |
(Optional) name for the component. Defaults to "" | ||
(Optional) Position of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |||
(Optional) Rotation of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |||
(Optional) Scale of the component in the space. Defaults to {x: 1, y: 1, z: 1} | |||
number |
(Optional) Speed of the bullet. Defaults to 0.1 | ||
"bullet" |