Prediction

Posts 1–2 of 2 · Page 1 of 1
Prediction
What's wrong with this Predict?

VectorSubtract(Entity[i]->NewOrigin, Entity[i]->OldOrigin, EnemyVelocity);

CurBone[0] = ( CurBone[0] + EnemyVelocity[0] );
CurBone[1] = ( CurBone[1] + EnemyVelocity[1] );
CurBone[2] = ( CurBone[2] + EnemyVelocity[2] );
...

Do you even physics bro? That's not how you calculate velocity.

Velocity is the rate of change of the displacement, the difference between the final and initial position of an object. Velocity is equivalent to a specification of its speed and direction of motion


You calculate velocity using the change ( delta ) of the displacement moved ( v ) and scale it according to a timescale ( t )
Aka,

v = ( dx / dt )
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us