Skip to content

fix trimesh returned by IntoCollider for plane shapes#1012

Open
dylemma wants to merge 1 commit into
avianphysics:mainfrom
dylemma:fix-plane-into-collider
Open

fix trimesh returned by IntoCollider for plane shapes#1012
dylemma wants to merge 1 commit into
avianphysics:mainfrom
dylemma:fix-plane-into-collider

Conversation

@dylemma

@dylemma dylemma commented Jun 25, 2026

Copy link
Copy Markdown

Objective

Solution

Generate two different triangles instead of the same triangle twice.

Testing

Attempting to cargo test this repository OOMed my PC, so I didn't run those. However, I was able to use a custom MyInfinitePlane3d in my initial app where I discovered the issue; returning Collider::trimesh(vertices, vec![[0, 1, 2], [0, 2, 3]]) from its IntoCollider implementation seemed to get the correct ray-cast results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cast_ray vs InfinitePlane3d gets no hit depending on the angle

1 participant