pmndrs / use-p2

👋💣 2d physics hooks for @react-three/fiber
https://p2.pmnd.rs
MIT License
149 stars 9 forks source link

how to rotate a body smoothly? #15

Closed AmirHo3einJS closed 1 year ago

AmirHo3einJS commented 1 year ago

Hello, So I want to set the angle of a body smoothly. for instance from 0 to 90 degrees. how can I do that? I wanted to use angular velocity or apply torque to the body but there is no ensure that the final angle of the body would be 90 degrees.

isaac-mason commented 1 year ago

Closing this issue, see the discussion on the p2-es repo: https://github.com/pmndrs/p2-es/discussions/17