Move to problem - is this the commonly known bug or am I doing something wrong?
Hunnenkoenig
Member Posts: 1,173
I have an actor, which I click and it moves to a certain location.
Everything works fine, but if I set another actor on the screen and click the actor which should move to a certain location, this actor flies off the screen and doesn't stop on the given X coordinate.
Is this a bug, which was mentioned, or am I doing something wrong?
It seems, it works good for a few times and then suddenly it doesn't. I can't find anything in my rules or behaviours that could cause this.
EDIT:
Ok, never mind...it seems to work on the iPhone well.
Everything works fine, but if I set another actor on the screen and click the actor which should move to a certain location, this actor flies off the screen and doesn't stop on the given X coordinate.
Is this a bug, which was mentioned, or am I doing something wrong?
It seems, it works good for a few times and then suddenly it doesn't. I can't find anything in my rules or behaviours that could cause this.
EDIT:
Ok, never mind...it seems to work on the iPhone well.
Comments
Keep you moveTo speeds low and it works better.
My speed is the standard 300 :-)
I'm trying to find a workaround that deals with the over-shoot. A "net" actor to stop the fast moving actor, with no restitution on collision, wont work for me. I also tried constraining an actor attribute to the magnitude() between the actor's position and the destination (x,y). But magnitude seems to always be a positive number, so checking for a <= zero condition doesn't work. Lastly, I tried to monitor this with an update timer. Every quarter second, I check the distance from the actors position to the actor's MoveToX and MoveToY attributes. If the distance is <= 5, then set the Motion.LinearVelocity.X/Y to zero. But that also doesn't work.
Any other ideas for stopping over-shot with MoveTo set to a value closer to 600? To see this more frequently, set a high speed, like 1000 and move the actor to a couple actor attributes, named MoveToX and MoveToY. I'm open to any ideas...
Thank you,
John K.
(it helps if you say it like a Dalek would!)
I use it for loads of stuff. So I should say thanks really.
Thanks GS for interpolate!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
John K.