You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
We currently have PendingConvexCollision to import a mesh and a generate collision for it. But it generates ConvexHull which means that it create convex polygon from the vertices. But it doesn't work well if model represented as a concave mesh.
For example, I have a house prototype model:
If I apply PendingConvexCollision for it, I won't be able to enter the building though the door because the collision is represented as a concave polygon. In Godot you have two options to workaround it:
Create a trimesh polygon from a mesh. Godot uses import hints for it. In 4.0 a nice import menu will be available (which also supports trimesh collision generation!). We could also implement this feature with API similar to PendingConvexCollision: user spawns a scene and adds PendingConvexCollision. This feature depends on Add Body::TriMesh definition #41.
The text was updated successfully, but these errors were encountered:
Shatur
changed the title
Add API to create collision from mesh
Create collision for complex meshes
Mar 5, 2022
Shatur
changed the title
Create collision for complex meshes
Extend API for collision creation for meshes
Mar 5, 2022
We currently have
PendingConvexCollision
to import a mesh and a generate collision for it. But it generatesConvexHull
which means that it create convex polygon from the vertices. But it doesn't work well if model represented as a concave mesh.For example, I have a house prototype model:
If I apply
PendingConvexCollision
for it, I won't be able to enter the building though the door because the collision is represented as a concave polygon. In Godot you have two options to workaround it:PendingConvexCollision
: user spawns a scene and addsPendingConvexCollision
. This feature depends on Add Body::TriMesh definition #41.The text was updated successfully, but these errors were encountered: