Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coxy17 on February 04, 2016, 06:35:29 AM

Title: MoveTowards Jump Issue
Post by: coxy17 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
Title: Re: MoveTowards Jump Issue
Post by: wheretheidivides on February 04, 2016, 11:36:47 PM
how about .00000001?