Optional
anglebody 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
Optional
groupgroup 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
Optional
isis body offset centered for rotation purpouses
flag to show is it a convex body or non convex polygon
Optional
issystem.separate() doesn't move this body
Optional
issystem.separate() doesn't trigger collision of this body
each body may have offset from center
Optional
paddingBHV padding for bounding box, preventing costly updates
Optional
systemcollisions system reference
Readonly
typetype of body
Readonly
typefaster for comparision, inner, type of body as number
Optional
userallows the user to set any misc data for client use
scale getter (x)
scale getter (y = x for Circle)
update position BY MOVING FORWARD IN ANGLE DIRECTION
Optional
updateNow: booleanfor setting angle
Optional
updateNow: booleanfor setting offset from center
Optional
updateNow: booleanupdate position BY TELEPORTING
Optional
updateNow: booleanfor setting scale
Optional
updateNow: boolean
each body contains those regardless of type