Make physics entity creation more difficult to mess up #475
Labels
A-Dynamics
Relates to rigid body dynamics: motion, mass, constraint solving, joints, CCD, and so on
C-Usability
A quality-of-life improvement that makes Avian easier to use
I'm using Avian version 0.1.1.
Currently quite a few components for physics entities are added only when the physics systems are run, for example,
Mass
, andInertia
,LinearVelocity
, etc. In my game, I rely on entities being fully formed immediately after they are spawned.When I add mass properties components manually, I also must not forget to set collider density to 0, otherwise the mass properties from the collider will be added on top. Adding these (and some other issues) up the whole physics entity creation is very easy to mess up in some way.
I have some ideas on how to improve the situation, I can share them if this is something we want to address.
The text was updated successfully, but these errors were encountered: