Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kavery on October 09, 2017, 03:28:52 PM

Title: Question about Move Towards Advanced (custom action from the ecosystem)
Post by: kavery on October 09, 2017, 03:28:52 PM
Just noticed this action.. I see it allows you to pick the update type (on update, on late update, on fixed update).

I use move towards quite a bit so I'm wondering if another type might benefit performance. The moving game objects are kinematic rigidbodies with multiple box coliders.

Any practical reasons when to pick one over the other?


Also what type is the original move towards action?



Title: Re: Question about Move Towards Advanced (custom action from the ecosystem)
Post by: Fat Pug Studio on October 10, 2017, 05:20:55 AM
It's recommended to put physics stuff in fixed update since it doesn't depend on the framerate. The Update and Late Update functions run at every frame, while Fixed Update runs at a fixed rate independent of the framerate. Move towards uses transform.position so fixed update is best for the performance all-round.
Title: Re: Question about Move Towards Advanced (custom action from the ecosystem)
Post by: jeanfabre on October 11, 2017, 02:26:18 AM
Hi,

 yep and lateUpdate is used when you want to adjust camera and transforms after all objects have moved in the scene, else you would have jitters.


 bye,

 Jean
Title: Re: Question about Move Towards Advanced (custom action from the ecosystem)
Post by: kavery on October 11, 2017, 04:07:09 PM
Thanks guys.. any idea why I'm getting an error when adding that custom action to my project? "...marked as an override but no suitable method found to override"

Using Unity 5.3.4.
Title: Re: Question about Move Towards Advanced (custom action from the ecosystem)
Post by: jeanfabre on October 12, 2017, 02:17:44 AM
Hi,

 can you paste the full error content?

 bye,

 Jean
Title: Re: Question about Move Towards Advanced (custom action from the ecosystem)
Post by: jeanfabre on October 12, 2017, 03:58:27 AM
Hi,

 also, please don't double posts, I removed your other thread on this, let's carry on here.

 Bye,

 Jean