Options
All
  • Public
  • Public/Protected
  • All
Menu

Add this component to an entity to set its velocity to a custom value. After simulation occurs on the next frame, this component is removed from the entity automatically.

Hierarchy

Index

Constructors

constructor

Properties

velocity

velocity: Vector2

Specifies the new velocity value to set for the entity

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static velocity

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc