Skip to content

Commit

Permalink
[aabb-collider] default assume objects are static for perf boost, mar…
Browse files Browse the repository at this point in the history
…k moving objects with aabb-collider-dynamic
  • Loading branch information
ngokevin committed Aug 8, 2019
1 parent 5215fe0 commit c31f34b
Show file tree
Hide file tree
Showing 8 changed files with 424 additions and 311 deletions.
1 change: 1 addition & 0 deletions components/aabb-collider/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"presets": ["es2015"]}
4 changes: 4 additions & 0 deletions components/aabb-collider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ For [A-Frame](https://aframe.io).
| objects | Selector of entities to intersection test against. | '' |
| interval | Milliseconds in between intersection checks. | 80 |

If the target collidable object is moving, set `<a-entity
data-aabb-collider-dynamic>` on the target. By default, collidable objects are
presumed to be static for performance purposes.

#### Events

| Event | Description |
Expand Down
Loading

0 comments on commit c31f34b

Please sign in to comment.