Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
aframe-aabb-collider-component
Advanced tools
Readme
An axis-aligned bounding box component for A-Frame. Provides collision detection.
For A-Frame.
Property | Description | Default Value |
---|---|---|
collideNonVisible | Whether to check for collisions against non-visible entities. | false |
debug | Whether to draw bounding box helpers. | false |
enabled | Whether collision checks are running. | true |
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.
Event | Description |
---|---|
hitstart | Intersection between box and another entity. Emitted on both source and target if target does not have AABB. |
hitend | No longer intersecting between box and another entity. Emitted on both source and target if target does not have AABB. |
hitclosest | Intersection between the box and the closest entity from its center. Only one entity is "closest" at a time. |
hitclosestclear | The previously closest intersected entity to the box is no longer the closest entity. |
Accessed via entity.components['aabb-collider'][<member>]
.
Name | Description |
---|---|
closestIntersectedEl | Closest collided entity. |
intersectedEls | Array of current collided entities. |
Install and use by directly including the browser files:
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-aabb-collider-component@3.1.0/dist/aframe-aabb-collider-component.min.js"></script>
</head>
<body>
<a-scene>
<a-entity hand-controls="right" aabb-collider="objects: .box"></a-entity>
<a-box class="box" color="blue" position="0 1 -5"></a-box>
</a-scene>
</body>
Install via npm:
npm install aframe-aabb-collider-component
Then require and use.
require('aframe');
require('aframe-aabb-collider-component');
FAQs
An axis-aligned bounding box component for A-Frame.
The npm package aframe-aabb-collider-component receives a total of 289 weekly downloads. As such, aframe-aabb-collider-component popularity was classified as not popular.
We found that aframe-aabb-collider-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.