Joint Class
Joint helper entity children of Wall and Path
Constructor
Item Index
Methods
createGraphics
(
-
graphics
Create base graphics.
Parameters:
-
graphicsPixi.Graphics
destroy
(
-
graphics
Destroy base graphics.
Parameters:
-
graphicsPixi.Graphics
destroy
()
Destroy the Joint
destroyGraphics
(
-
container -
graphics
Destroy base graphics.
Parameters:
-
containerPixi.Container -
graphicsPixi.Graphics
dragTo
(
-
pos -
anchor
Draggin actino.
Parameters:
-
posVec2 -
anchorVec2
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:
-
posVec2
Returns:
Boolean:
true if inside; false otherwise
render
()
Animate joint, update position and radius.
setInteractive
(
-
displayObject
Set render entity as interactive.
Parameters:
-
displayObjectPixi.DisplayObject
