
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
aframe-raycast-target
Advanced tools
Simple utility component that is used to enable proxy raycasting.
A very simple utility component that is used to enable proxy raycasting.
Proxy raycasting is a pattern where the entity used for raycasting is different from the entity that is selected or manipulated by raycasting. It enables performance improvements when raycasting against entities with complex geometry by allowing raycasting computations to be performed against an entity with simpler geometry, which can be substantially more efficient.
The entity with simpler geometry could be a low-poly mesh that approximates the entity's geometry. Or in cases where precision raycasting is not required, it could be as simple as a bounding cube or sphere.
raycast-target has a single property schema
The property is a selector for the target for which this entity is acting as a raycast proxy. If no value is specified, the entity will be set up as a raycast proxy for itself (i.e. no proxying takes place).
raycast-target exposes the target entity on the target property
Here's some sample code that extracts a raycast target if available, and defaults to the entity itself if not.
getRaycastTarget(el) {
if (el.components['raycast-target']) {
return el.components['raycast-target'].target
}
else {
return el
}
},
Via CDN
<script src="https://cdn.jsdelivr.net/npm/aframe-raycast-target@0.1.0/index.min.js"></script>
Or via npm
npm install aframe-raycast-target
The following high-level components support proxy raycasting using raycast-target.
To follow...
FAQs
Simple utility component that is used to enable proxy raycasting.
We found that aframe-raycast-target demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.