DraggableEntity
class DraggableEntity extends Entity
Used to make a game entity draggable
Constructor
new DraggableEntity(x: number, y: number, settings: object) → {}
Name | Type | Description |
---|---|---|
x | number |
the x coordinates of the draggable object |
y | number |
the y coordinates of the draggable object |
settings | object |
Entity properties (see Entity) |
Summary
Properties inherited from Entity
boolean |
|
Body |
|
number |
|
Renderable |
|
string |
|
Properties inherited from Renderable
number |
|
boolean |
|
Container | Entity |
|
ObservableVector2d |
|
boolean |
|
string |
|
Matrix2d |
|
number |
|
boolean |
|
string |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
Rect | RoundRect | Polygon | Line | Ellipse |
|
string |
|
Function |
|
Application |
|
ObservableVector3d |
|
GLShader |
|
Color |
|
boolean |
|
Properties inherited from Rect
Methods inherited from Entity
|
|
update the bounds when the body is modified |
|
onDeactivateEvent Notification function |
|
Bounds |
|
Methods inherited from Renderable
Methods inherited from Rect
Rect |
|
Rect |
|
boolean |
|
Rect |
|
boolean |
|
boolean |
|
boolean |
|
Rect |
|
Rect |
|
Polygon |
|
Rect |
|
Methods inherited from Polygon
Array<number> |
|
boolean |
|
Polygon |
|
Polygon |
|
|
|
Polygon |
|
Polygon |
|
Polygon |
|