Skip to content

[Enchancement] Implement per-collider properties #607

Description

@MuscleChicken

Currently, the physical properties of a rigid body (density, friction, restitution, collision layer) are tied to the body itself. It would be nice to have these properties available on the collision shapes so that bodies can be composed of multiple collision shapes with different properties.

One big advantage of rapier is that it supports per-collider properties https://docs.rs/rapier3d/latest/rapier3d/geometry/struct.Collider.html

In editor, this could be done through a RapierCollisionShape node which includes export fields for density, body skin, collision layer, and physics material.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions