collider - circle
Optional
options: BodyOptions<UserDataType>Protected
_groupgroup for collision filtering
for compatibility reasons circle has angle
bounding box cache, without padding
was the polygon modified and needs update in the next checkCollision
Readonly
isalways centered
Readonly
isflag to show is it a convex body or non convex polygon
static bodies don't move but they collide
trigger bodies move but are like ghosts
maximum x bound of body
maximum y bound of body
minimum x bound of body
minimum y bound of body
offset
offset copy without angle applied
bodies are not reinserted during update if their bbox didnt move outside bbox + padding
Optional
systemreference to collision system
Readonly
typecircle type
Readonly
typefaster than type
Protected
Readonly
unscaledsaved initial radius - internal
Optional
userallows the user to set any misc data for client use
group for collision filtering
Values in BodyGroup are predefined and used each the body type and should not be used for custom filtering
0b00000001 << 16
to 0b01000000 << 16
(max 0x7fffffff) are free to use for custom groups
canInteract for how groups are used
group for collision filtering
Values in BodyGroup are predefined and used each the body type and should not be used for custom filtering
0b00000001 << 16
to 0b01000000 << 16
(max 0x7fffffff) are free to use for custom groups
canInteract for how groups are used
allow get scale
shorthand for setScale()
scaleX = scale in case of Circles
scaleY = scale in case of Circles
get this.pos.x
updating this.pos.x by this.x = x updates AABB
get this.pos.y
updating this.pos.y by this.y = y updates AABB
Draws collider on a CanvasRenderingContext2D's current path
Draws Bounding Box on canvas context
get body bounding box, without padding
Protected
getinternal for getting offset with applied angle
Protected
markupdate instantly or mark as dirty
update position BY MOVING FORWARD IN ANGLE DIRECTION
update scale
inner function for after position change update aabb in system
collider - circle