jcornaz / heron

[DISCONTINUED] An ergonomic physics API for bevy games
MIT License
292 stars 44 forks source link

Allow tweaking low-level `RigidBodyBuilder` #162

Closed MOZGIII closed 2 years ago

MOZGIII commented 2 years ago

I'd like a capability to tweak RigidBodyBuilder's parameters at rigid body spawn time in an arbitrary manner.

My concrete interest for now is turning on ccd_enabled - but something else might be required later (I can imagine sleeping and related stuff).

jcornaz commented 2 years ago

Hi,

For each of theses needs (but only when actually needed), I would rather improve heron to add a dedicated component to the API. So for your current need we could feature a ContinuousCollisionDetection component. And we may add a Sleeping component when the need will arise for someone.

I understand it means that heron's is more limited, as one has to wait until heron add support for each feature.

But it is somewhat the point of this plugin. Users that want full power of rapier out-of-the box (at the cost of higher complexity) can use bevy_rapier, and the point of having heron as an alternative, is to provide a well-crafted data-oriented API (at the cost of being more limited).