turn one object to the other. how to do this?
for example
entity.point(entity1, entity2)
entity.lookatObject
targetID = 5;
rotateSpeed = 300;
rotFactor = 1/rotateSpeed;
function onUpdate()
rotProgress = rotProgress + rotFactor;
if(rotProgress >= 1)then
rotProgress = 0;
else
entity.lookatObject(obj, targetID, rotProgress, 0, 0, 1);
end
end
Users browsing this forum: No registered users and 9 guests