# 3D scene interactions

### Touch and Click events

If you are in a 3D scene on a 2D display, you can interact with the objects or buttons on you scene with a mouse or touch event, as you would in any other web app. One difference is the instead of checking if we hit an html element like button, we need to check the 3D position that we are hitting and check if there is any collisions with an object. We do not have a way to directly attach a touch or click event to a 3D object but we can check to see if the ray casted from our touch or click is passing through an object.

### Raycasting

### Hand Interactions


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.xrdev.app/mixed-reality-docs/webxr-lessons/3d-on-the-web/concepts/3d-scene-interactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
