FlaxEngine / FlaxEngine/FlaxEngine

[QOL Suggestion] Non-Convex MeshCollider Actor should warn user more when used with Rigidbody which is unsupported by PhysX

Open
#3,189 3 comments 2 reactions 0 assignees View on GitHub
discussion physics
Dominant language
C++
Stars
7k
Forks
713
Avg merge
7d 11h
Merged PRs (30d)
19

Description

Using Non-Convex mesh colliders is not supported by PhysX, which instead advises users to approximate shapes with holes through default primitive shapes or multiple convex shapes.

In Unity, attempts to use Rigidbody with non-convex mesh throws a warning on start. In Flax, it does give a warning in the Output log which, however, easily gets flooded by many other unrelated messages to the point it will not be seen by the user, which makes the user wonder why the rigidbody does not collide with other objects or why calling PhysicsColliderActor.AttachedRigidBody returns null although the parent is a Rigidbody.

I propose Flax either throws a warning in Debug Log on Awake when the Collider/Rb tries to get its colliders or gives a message in the rigidbody/collider actor mentioning that this is unsupported and will not attach the collider to the mesh.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.