You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When positioning an object in
THREE.js
it gets positioned from its center.To make its bottom align with the plane where
y
equals0
, you'll need to position it with ay
value with half its height.There is an issue related to this on the
THREE.js
repo hereI was wondering if there could be a
drei
helper that could help with pivoting an object by giving it a "transform-origin"I've created an example on codesandbox
Beta Was this translation helpful? Give feedback.
All reactions