diff options
Diffstat (limited to 'engine/components/Control.ts')
-rw-r--r-- | engine/components/Control.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engine/components/Control.ts b/engine/components/Control.ts index 094ef1c..1e782ee 100644 --- a/engine/components/Control.ts +++ b/engine/components/Control.ts @@ -1,7 +1,11 @@ -import { Component, ComponentNames } from "."; +import { Component, ComponentNames, Velocity } from "."; export class Control extends Component { - constructor() { + public controlVelocity: Velocity; + + constructor(controlVelocity: Velocity = new Velocity()) { super(ComponentNames.Control); + + this.controlVelocity = controlVelocity; } } |