Protected_for compatibility reasons circle has angle
bounding box cache, without padding
was the polygon modified and needs update in the next checkCollision
Readonlyisalways centered
Readonlyisflag 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
Optionalsystemreference to collision system
Readonlytypecircle type
Readonlytypefaster than type
Protected Readonlyunscaledsaved initial radius - internal
Optionaluserallows the user to set any misc data for client use
Protected Static ReadonlyPADDINGProtected Static ReadonlyRADIUSProtected Static ReadonlySEPARATION_Protected Static ReadonlySEPARATION_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
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
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
Protectedgetinternal for getting offset with applied angle
Protectedmarkupdate instantly or mark as dirty
OptionalupdateNow: booleanupdate position BY MOVING FORWARD IN ANGLE DIRECTION
Optionalspeed: numberOptionalupdateNow: booleanset rotation
OptionalupdateNow: booleanset offset from center
OptionalupdateNow: booleanupdate position BY TELEPORTING
OptionalupdateNow: booleanupdate scale
Optional_scaleY: numberOptionalupdateNow: booleaninner function for after position change update aabb in system
OptionalupdateNow: boolean
group for collision filtering