playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Question about Move Towards Advanced (custom action from the ecosystem)
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Question about Move Towards Advanced (custom action from the ecosystem) (Read 1949 times)
kavery
Full Member
Posts: 149
Question about Move Towards Advanced (custom action from the ecosystem)
«
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?
«
Last Edit: October 09, 2017, 03:33:35 PM by kavery
»
Logged
Fat Pug Studio
Beta Group
Hero Member
Posts: 1294
Re: Question about Move Towards Advanced (custom action from the ecosystem)
«
Reply #1 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.
Logged
Available for Playmaker work
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Question about Move Towards Advanced (custom action from the ecosystem)
«
Reply #2 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
Logged
kavery
Full Member
Posts: 149
Re: Question about Move Towards Advanced (custom action from the ecosystem)
«
Reply #3 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.
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Question about Move Towards Advanced (custom action from the ecosystem)
«
Reply #4 on:
October 12, 2017, 02:17:44 AM »
Hi,
can you paste the full error content?
bye,
Jean
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Question about Move Towards Advanced (custom action from the ecosystem)
«
Reply #5 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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Question about Move Towards Advanced (custom action from the ecosystem)