the3dadvantage/Modeling-Cloth

Gravity vector along object-Z, not world-Z

Closed this issue · 5 comments

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.

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.

Thanks! :)

Fixed! Now gravity is global and even updates in real time while rotating an object

Awesome. I'll go and experiment :)

Checked: works beautifully.