Class R.objects.Fixture
Extends
R.objects.Object2D.
A fixture is a simple rectangular area used to define either
a solid area, or a trigger for a callback.
Defined in: fixture.js.
Constructor Attributes | Constructor Name and Description |
---|---|
R.objects.Fixture(rect, visible)
|
Field Attributes | Field Name and Description |
---|---|
This type of box impedes movement through it
|
|
This type of box triggers an action
|
- Fields borrowed from class R.struct.Container:
- EMPTY
Method Attributes | Method Name and Description |
---|---|
Get the class name of this object
|
- Methods borrowed from class R.objects.Object2D:
- deserialize, destroy, getAABB, getBoundingBox, getBoundingCircle, getCollisionHull, getDefaultTransformComponent, getLastPosition, getOrigin, getOriginPosition, getPosition, getProperties, getRenderPosition, getRenderRotation, getRotation, getScale, getScaleX, getScaleY, getTransformationMatrix, getWorldBox, getWorldCircle, getZIndex, release, serialize, setBoundingBox, setCollisionHull, setDefaultTransformComponent, setOrigin, setPosition, setRotation, setScale, setZIndex
- Methods borrowed from class R.engine.GameObject:
- add, componentSort, getComponent, getComponentByClass, getRenderContext, isDirty, isKeepAlive, markDirty, remove, setKeepAlive, setRenderContext, update, wasDirty
- Methods borrowed from class R.struct.HashContainer:
- cleanUp, clear, get, isInHash, removeAtIndex, removeHash
- Methods borrowed from class R.struct.Container:
- addAll, append, clone, concat, contains, filter, forEach, fromArray, getAll, getObjects, insert, iterator, reduce, replace, replaceAt, size, sort, subset, toXML
- Methods borrowed from class R.engine.BaseObject:
- addEvent, addEvents, getElement, jQ, removeEvent, setElement, triggerEvent
- Methods borrowed from class R.engine.PooledObject:
- clearObjectDataModel, getId, getName, getObjectDataModel, isDestroyed, setName, setObjectDataModel, toString
Class Detail
R.objects.Fixture(rect, visible)
- Parameters:
- rect
- {R.math.Rectangle2D} The box which defines the area of the fixture
- visible
- {Boolean}
true to render a visible rectangle for the fixture
Field Detail
TYPE_COLLIDER
This type of box impedes movement through it
TYPE_TRIGGER
This type of box triggers an action
Method Detail
{String}
getClassName()
Get the class name of this object
- Returns:
- The string R.objects.Fixture