Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 3d_Artist1987 on May 22, 2014, 02:50:08 AM

Title: Fixed Update [SOLVED]
Post by: 3d_Artist1987 on May 22, 2014, 02:50:08 AM
hi,

i want to set my physic action to Fixed Update,how to do this,
i think every frame option is update only,Am i wrong?

or second option is i open .cs file and modify into Fixed Update.

Dev
Title: Re: Fixed Update
Post by: Lane on May 22, 2014, 08:07:22 AM
Which action are you referring to? The stock physics actions should already be done in FixedUpdate, or at least have an option for using it.

Are you making a new action?
Title: Re: Fixed Update
Post by: 3d_Artist1987 on May 23, 2014, 12:56:11 AM
Hi,

Thanks for reply,
i talking about get axis,get and set velocity actions.

Dev
Title: Re: Fixed Update
Post by: Lane on May 23, 2014, 07:50:15 AM
What is the reason for wanting to change it to FixedUpdate?

GetAxis is using Input.GetAxis which is done on Update by Unity. The reason Physics based actions are mostly on FixedUpdate is because it is framerate independent. (http://unity3d.com/learn/tutorials/modules/beginner/scripting/update-and-fixedupdate) Using it on Input actions has limited application.

Get/SetVelocity is a similar situation. Its basically just used to control the rate at which something is done.
Title: Re: Fixed Update
Post by: 3d_Artist1987 on May 24, 2014, 01:07:27 AM
hi,

Thanks for sharing information.Now i understand no need fixed update in get axis and velocity action.

Dev
Title: Re: Fixed Update
Post by: play_edu on May 24, 2014, 02:58:53 AM
thanks