playMaker

Author Topic: MoveTowards Jump Issue  (Read 1441 times)

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
MoveTowards Jump Issue
« on: February 04, 2016, 06:35:29 AM »
Hi

Im making a playmaker script for the ecosystem and I have one issue about using MoveTowards. My script is a moving platform script which takes a 'start point', 'end point' and moves the owner to each one (like ping pong)

The issue is when the 'time scale' is set to '0' in the game I noticed that the platform will giter (jump a few frames or forces the platform object to the end frame in the motion) when set. Why is this and how can i prevent this and have the platform remain in the same spot and continue when 'timescale' is restored to '1'?

Code: [Select]
if(Switch.Value && (Time.time > pauseTime.Value))
{
owner.transform.position = Vector3.MoveTowards(owner.transform.position, origin.transform.position, Speed.Value);
arrivedAtOurDestination = false;
}

Hope I'm making sense

Nick

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: MoveTowards Jump Issue
« Reply #1 on: February 04, 2016, 11:36:47 PM »
how about .00000001?