Options
All
  • Public
  • Public/Protected
  • All
Menu

Add this component to an entity to observe its velocity values during simulation. This component is not needed to simulate an entity under physics, but is required to access the entity's velocity data.

Hierarchy

Index

Constructors

constructor

  • Parameters

    Returns Velocity2D

Properties

velocity

velocity: Vector2

This field is updated each frame with the object's most recent velocity.

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