Skip to content

Weird behaviour with raycasting under ortographic camera projection #35

Description

@fruiz-timining

On the other->raycast demo, which works fine by default, if you change the camera projection to Orthographic (Controls button, uncheck "Perspective camera"), you can no longer select meshes with your mouse cursor.
Instead it seems to only hit meshes that appear on the very center of the demo's viewport, regardless of the mouse's relative position over it (you can try panning the camera to any side and start clicking to see it hits whatever it is on the center).
Not sure if that is the intended behaviour or if Raycasting is not supported under orthographic projection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions