Optionalanglebody angle in radians use deg2rad to convert
move(speed) moves at 1 speed = 1px towards angle
bounding box cache, without padding
was the body modified and needs update in the next checkCollision
Optionalgroupgroup 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
Optionalisis body offset centered for rotation purpouses
flag to show is it a convex body or non convex polygon
Optionalischeck2d.separate() doesn't move this body
Optionalischeck2d.separate() doesn't trigger collision of this body
each body may have offset from center
OptionalpaddingBHV padding for bounding box, preventing costly updates
Optionalsystemcollisions system reference
Readonlytypetype of body
Readonlytypefaster for comparision, inner, type of body as number
Optionaluserallows the user to set any misc data for client use
scale getter (x)
scale getter (y = x for Circle)
draw the collider
draw the bounding box
return bounding box without padding
update position BY MOVING FORWARD IN ANGLE DIRECTION
OptionalupdateNow: booleanfor setting offset from center
OptionalupdateNow: booleanupdate position BY TELEPORTING
OptionalupdateNow: booleanfor setting scale
OptionalupdateNow: boolean
each body contains those regardless of type