Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

49
Vistas
moving in a circular motion from one point to another

2 points on a 2d grid and I need to move my player in a way that would be a circular motion to the other point gradually what would the equation look like on that? like moving from point p to point Q would it relate to the differences in the angles and distance? I'm stumped I feel dumb please help! https://i.stack.imgur.com/N1ykX.png

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Circle center

C = (P + Q) / 2

Initial radius-vector (from C to P)

A = (P - Q) / 2

Perpendicular vector

B.x, By = -A.y, A.x

Now SLERP for Ω = Pi/2 in range t = 0..2

R.x = C.x + sin((1-t)*Pi/2)*A.x - sin(t*Pi/2)*A.y
R.y = C.y + sin((1-t)*Pi/2)*A.y + sin(t*Pi/2)*A.x

Quick checking:

t = 0: R.x = C.x + 1 * A.x - 0 = P.x
t = 1: R.x = C.x + 0 - A.y = point at the middle perpendicular
t = 2: R.x = C.x - A.x + 0 = Q.x
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda