NOTE: This version of the documentation tracks unstable development happening on A-Frame’s
masterbranch. If you wish to try it out, grab the unstable build. Otherwise, head to the documentation for the current 1.5.0 version
Collision system using Oriented Bounding Boxes based on
It checks collision accross all entities with the obb-collider component. It emits events when bounding boxes start and stop intersecting.
true on the scene to render colliders for debugging purposes:
<a-scene obb-collider="showColliders: true"></a-scene>
|Force collider to a specific size
|0 0 0
|Variable path to the object3D used to calculate the collider. el.object3D by default
|Minimum dimension size for the collider. Not practical if too small. e.g planes or small models
|Centers the model before calculating the bounding box and corresponding collider.
|Emitted on the entities that start colliding. Event detail will contain
withEl referencing the entity that has collided with.
|Emitted on the entities that stop colliding. Event detail will contain
withEl referencing the entity that was colliding with