Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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?
-
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.
-
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
-
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.
-
Hi,
can you paste the full error content?
bye,
Jean
-
Hi,
also, please don't double posts, I removed your other thread on this, let's carry on here.
Bye,
Jean