Gravity vector along object-Z, not world-Z
robw001 opened this issue · 5 comments
robw001 commented
Hi Rich,
The gravity vector seems to be along object-Z, not world-Z. This is a bit confusing. I would expect gravity to follow world-Z.
To reproduce: take the default cube, rotate x*45, mark as Modeling Cloth, set gravity, hit Play.
Is it possible to set the gravity vector to world-Z, or even better: set a custom vector?
Regards,
Rob.
the3dadvantage commented
For now I'm ignoring object transforms. It would make more sense to use world coordinates and that's easy enough to implement. I will change this when I start working on object collisions. Hopefully this week.
robw001 commented
Thanks! :)
the3dadvantage commented
Fixed! Now gravity is global and even updates in real time while rotating an object
robw001 commented
Awesome. I'll go and experiment :)
robw001 commented
Checked: works beautifully.