When I create an Object3D model and add the meshes to it, how do I set the position and rotation of the added mesh to same as the Object3D model, like when I rotate and position the Object3D there should be no difference in angle of rotation between the Object3D and the added mesh. How do I achieve such result?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
If your Object3D model is called
obj
, then afterobj.add(mesh)
any changes toobj
(position/rotation/scale) will changemesh
in the same way.If instead you don't want
mesh
to be attached toobj
, but you still want them to have the same position and rotation, you could tryHope this helps!