Search the Community
Showing results for tags 'Point'.
-
I have a few turrets and some enemies just with health and the walk in a circle. http://pasteboard.co/LnHZqB1OU.gif As one can see from the gif , when one turret is in the scene it is turning smoothly. But when multiple ones are spawned, they only update once in a while. The line uses Point() and looks like this : if self.target then self.entity:Point(self.target.entity,2,Time:GetSpeed()*0.1) end How can i fix / optimize this ? The gif is (only) 6 mb but it takes long to load, sorry for this.
-
Above some screenshots that are important to understand the problem. function Script:UpdatePhysics() self.entity:Point(self.target, 1, Time:GetSpeed() * self.rotSpeed) end This is a part of my code. The first screenshot is what happens when i run the game. The crawler runs around a path, the turret points at him but is rotated in negative y. What can I do to prevent this ?