Skip to content

MeshRayCast has intersections not on the surface of the mesh #25605

Description

@yh1970

Bevy version and features

0.19.1 with features default and free_camera

What you did

I cast a ray from camera using MeshRayCast to the meshes I loaded and visualize the first intersection using gizmos.

A small code base for reproduction

What went wrong

  • what were you expecting?
    All intersections should be just on the surfaces of meshes
  • what actually happened?
    Some intersections are inside the meshes or just in the air.

correct
Image

inside
Image

in the air
Image

Additional information

MeshRayCast works on the suzanne model but not on the zombie model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PickingPointing at and selecting objects of all sortsC-BugAn unexpected or incorrect behaviorS-Needs-InvestigationThis issue requires detective work to figure out what's going wrongX-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions