CircleCollider
Extends: Collider
Collider with the shape of a circle centered at (offset.x, offset.y), with given radius
Properties
radius(integer) — Radius of the collider
Constructor
new CircleCollider(
colliderName: string,
args?: roAssociativeArray,
): CircleColliderCreate a new CircleCollider
Parameters
colliderName(string) — name of this colliderargs(roAssociativeArray, optional, default: "{}") — additional properties (e.g {radius: 10})
Instance Methods
refreshColliderRegion(): void
Refreshes the collider
Returns
void
debugDraw(
renderObj: Renderer,
position: BGE.Math.Vector,
color?: integer,
addName?: boolean,
font?: roFont,
): void
Draws the circle outline around the collider
Parameters
renderObj(Renderer)position(BGE.Math.Vector)color(integer, optional, default: "&hFF0000FF")addName(boolean, optional, default: false)font(roFont, optional, default: "invalid")
Returns
void