collider - ellipse
Optional
options:
BodyOptions
Protected
_radiusX
inner initial params save
Protected
_radiusY
Protected
_step
body angle in radians use deg2rad to convert
bounding box cache, without padding
Protected
centered
is body centered
optimization for convex polygons
was the polygon modified and needs update in the next checkCollision
Readonly
isellipses are convex
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
each body may have offset from center
bodies are not reinserted during update if their bbox didnt move outside bbox + padding
Protected
pointsbackup of points used for scaling
Protected
Readonly
scalescale Vector of body
Optional
system
reference to collision system
Readonly
type
ellipse type
is body centered?
flag to set is body centered
get ellipse radiusX
set ellipse radiusX, update points
get ellipse radiusY
set ellipse radiusY, update points
allow approx getting of scale
allow easier setting of scale
allow exact getting of scale x - use setScale(x, y) to set
allow exact getting of scale y - use setScale(x, y) to set
get ellipse step number
set ellipse step number
updating this.pos.x by this.x = x updates AABB
updating this.pos.y by this.y = y updates AABB
Protected
getreturns body split into convex polygons, or empty array for convex bodies
Protected
markProtected
retranslate
for setting angle
for setting offset from center
update position
update scale
Protected
updateProtected
updateupdates convex polygons cache in body
Protected
updateGenerated using TypeDoc
collider - ellipse