Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
How to rotate and position the center object?

enter image description here enter image description here

I created a toolbox that can rotate and reposition a mesh with an axis in the middle. When I separate rotation and position, then the position will return to the previous one. However this causes rotation not on the mesh. So what I do is use multiply. But this is not what I expected because the mesh position should be where I marked it (not in mesh axis). How to rotate and position the object so that it remains in the specified position and rotate at that location ? Here is my code :

const translation = new THREE.Matrix4().makeTranslation(
  this.valueAOA_X,
  this.valueAOA_Y,
  this.valueAOA_Z
);
const angleRadian = CoordinateConverter.degreeToRadian(
  this.valueAOA_Rotation
);
const rotationAOA = new THREE.Matrix4().makeRotationZ(angleRadian);   
this.selectedModel.setPlacementTransform(
  rotationAOA.multiply(translation)
);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Fixed it by this line:

  this.selectedModel.setPlacementTransform(
    translation.multiply(rotationAOA)
  );
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!