Joint Class
Joint helper entity children of Wall and Path
Constructor
Item Index
Methods
createGraphics
(
-
graphics
Create base graphics.
Parameters:
-
graphics
Pixi.Graphics
destroy
(
-
graphics
Destroy base graphics.
Parameters:
-
graphics
Pixi.Graphics
destroy
()
Destroy the Joint
destroyGraphics
(
-
container
-
graphics
Destroy base graphics.
Parameters:
-
container
Pixi.Container -
graphics
Pixi.Graphics
dragTo
(
-
pos
-
anchor
Draggin actino.
Parameters:
-
pos
Vec2 -
anchor
Vec2
getAnchor
()
Vec2
Get joint anchor for dragging actions.
Returns:
Vec2:
anchor
getPos
()
Vec2
Get joint position.
Returns:
Vec2:
position
in
(
Boolean
-
pos
Checks if a point is inside a joint.
Parameters:
-
pos
Vec2
Returns:
Boolean:
true if inside; false otherwise
render
()
Animate joint, update position and radius.
setInteractive
(
-
displayObject
Set render entity as interactive.
Parameters:
-
displayObject
Pixi.DisplayObject