Replies: 1 comment
-
I don't think scheduling will solve the issue, it needs a bit more work. I'm not an expert in either avian or big_space so keep that in mind tough. The key considerations here are, that in bevy, GlobalTransform is relative to the absolute world origin. In big_space, GlobalTransform is relative to the floating origin, right? Edit: relative to the cell of the floating origin to be specific If we look at PhysicsTransformConfig we have three key things that are happening:
I'm fairly confident that Avian can work just fine with a (single) floating origin. It is of course important to keep in mind, that all physics that happen must remain reasonably close to that origin (just like it would with normal avian). Supporting multiple origins would be a lot more complicated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to configure avian3d and big_space to work together? I've tried using the default system scheduling of both crates but they seem to fight over setting
GlobalTransformso that entities withRigidBodyfly away from theFloatingOriginentity back to nearer the real origin. I think this is because big_space tries to keepGlobalTransformset within its larger world based on the floating origin, while avian sets it based onPosition.I realise the avian physics wouldn't be accurate within the entire larger world, but I was aiming to enable physics on entities that are closer to the
FloatingOrigin.Is it possible to schedule their respective systems in some way to be compatible? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions