Skip to content
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

Position, Rotation and Scale values seem to be dependent on each other! #227

Open
MahsaPaziraei opened this issue Sep 8, 2023 · 0 comments

Comments

@MahsaPaziraei
Copy link

I am using "gltfjsx" in React. I have all Position, Rotation and Scale on each mesh.
I want to rotate one of the meshes around the x axis, but when I try to change one of the rotation values, that part of the model becomes totally detached and the rotation does not work.
when I change the Scale the same thing happens as well.

This is the sample of the mesh I was talking about:
<mesh geometry={nodes.object_1.geometry} material={materials['fallback Material'],} position={[0.003, 5.582, -3.813]} rotation={[Math.PI, 0, Math.PI]} scale={[-0.153, 0.153, 0.637]} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant