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

47
Views
moverse en un movimiento circular de un punto a otro

2 puntos en una cuadrícula 2d y necesito mover a mi jugador de una manera que sería un movimiento circular hacia el otro punto gradualmente, ¿cómo se vería la ecuación en eso? como pasar del punto p al punto Q, ¿se relacionaría con las diferencias en los ángulos y la distancia? Estoy perplejo me siento tonto por favor ayuda! https://i.stack.imgur.com/N1ykX.png

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Centro del círculo

 C = (P + Q) / 2

Radio-vector inicial (de C a P )

 A = (P - Q) / 2

vector perpendicular

 Bx, By = -Ay, Ax

Ahora SLERP para Ω = Pi/2 en el rango t = 0..2

 Rx = Cx + sin((1-t)*Pi/2)*Ax - sin(t*Pi/2)*Ay Ry = Cy + sin((1-t)*Pi/2)*Ay + sin(t*Pi/2)*Ax

Comprobación rápida:

 t = 0: Rx = Cx + 1 * Ax - 0 = Px t = 1: Rx = Cx + 0 - Ay = point at the middle perpendicular t = 2: Rx = Cx - Ax + 0 = Qx
about 4 years ago · Santiago Trujillo 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!