How to use lerp on an entity?


#1

Hi, I have worked out how to use lerp

var a = new pc.Vec3(0, 0, 0);
var b = new pc.Vec3(0, 0, 22.5);
var r = new pc.Vec3();

r.lerp(a, b, 0);
r.lerp(a, b, 0.5);
r.lerp(a, b, 1);

but how to apply this to an entity?