public int UpdateMe(Node node, Person me) { me.angleQ = QMath.RadLimitQ(me.angleQ + node.angleDeltaQ); me.xQ += QMath.CosQ(me.angleQ, me.speedRev); me.zQ += QMath.SinQ(me.angleQ, me.speedRev); me.steps--; if (me.steps == 0) { return((int)node.NodeFeedback.targetReached); } else { return((int)node.NodeFeedback.notFinished); } }