Skip to content

Feature Request: Expose Three.js Raycaster API #24

@hdriviere

Description

@hdriviere

Is your feature request related to a problem? Please describe.

Currently, the SDK does not expose a way to perform raycasts from the camera using arbitrary origins and directions. This limits the ability to implement features such as mouse picking, click-to-move, and custom interaction systems.

Describe the solution you'd like

Expose the underlying Three.js Raycaster API, allowing developers to:

  • Cast rays from any origin and direction in world space.
  • Easily perform raycasts from the camera through the mouse or pointer position.
  • Retrieve information about the first object/block/entity hit, including hit position and normal.

Additional context

This feature would enable a wide range of interaction patterns, such as:

  • Click-to-move navigation
  • Object selection with the mouse
  • Custom targeting systems

https://threejs.org/docs/#api/en/core/Raycaster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions