-
-
Notifications
You must be signed in to change notification settings - Fork 389
Rotating model with physics resets the rotation #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fixed in #242. Will be soon in next release |
The It looks like the physics are not updated for the collisions according to the rotation: the cylinder goes trough the model then bumps in the middle of it. |
@thiervoj Open the issue in https://github.com/WhitestormJS/physics-module-ammonext . |
@thiervoj Okay, I found the problem. You forgot to set |
Oh, my bad ! Thanks for that :) |
Uh oh!
There was an error while loading. Please reload this page.
When importing a model with
WHS.Model
and applying it arotation
in the constructor withPhysics
, the object is created with the correct rotation.Then, when Physics is loaded, the rotation resets to the defaults.
Here is a pen showing the issue on the "arch" object (the
Cylinder
's rotation works fine) : https://codepen.io/jordanthiervoz/pen/vZBEWOVersion:
Issue type:
Tested on:
Desktop
Android
IOS
The text was updated successfully, but these errors were encountered: