Skip to content

Additional Physics Properties #32342

@SollyBunny

Description

@SollyBunny

Between the physics engines already having addons these properties are supported in common

  • Mass (exposed in all)
  • Restitution (exposed in all but Ammo)
  • Friction
  • Linear damping
  • Angular damping

Source: Bullet, Jolt, Rapier

Atleast friction should additionally be suported
With just this the signature can be addMesh(mesh, mass, restitution, friction)

Adding more properties would make this pretty unmanagable and would force each impl to support the same ones (which may not be wanted in the future), the userData.physics should be set (when supplying params manually) and read (if not supplied or for other properies)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions