Class R.collision.CircleHull
Extends
R.collision.ConvexHull.
A circular convex hull.
Defined in: circlehull.js.
Constructor Attributes | Constructor Name and Description |
---|---|
R.collision.CircleHull(center, radius)
Creates a circular hull.
|
- Fields borrowed from class R.collision.ConvexHull:
- CONVEX_CIRCLE, CONVEX_NGON
Method Attributes | Method Name and Description |
---|---|
Get the class name of this object
|
|
getType()
Return the type of convex hull this represents.
|
- Methods borrowed from class R.collision.ConvexHull:
- destroy, getCenter, getGameObject, getHostObject, getRadius, getUntransformedVertexes, getVertexes, release, setGameObject, setHostObject
- Methods borrowed from class R.engine.PooledObject:
- clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Class Detail
R.collision.CircleHull(center, radius)
Creates a circular hull.
- Parameters:
- center
- {Rectangle2D|Point2D|Array} Either the circle's center point, or a rectangle to use to approximate the bounding circle.
- radius
- {Number} The circle's radius if the first argument is a Point2D, or a percentage of the calculated radius if the first argument is an Array.
Method Detail
{String}
getClassName()
Get the class name of this object
- Returns:
- {String} "R.collision.CircleHull"
{Number}
getType()
Return the type of convex hull this represents.
- Returns:
- {Number} R.collision.ConvexHull#CONVEX_CIRCLE