playMaker

Author Topic: [SOLVED] Setting character movement to fixed update  (Read 6143 times)

Neptune_Imaging

  • Playmaker Newbie
  • *
  • Posts: 27
[SOLVED] Setting character movement to fixed update
« on: June 29, 2012, 04:29:39 PM »
Hey guys, I have a question in regards to setting up my character movement in FixedUpdate with playmaker... I had an earlier issue which involved my cloth jittering violently and I was told that i should put my animation in a fixed update, is there a way to do this with the actions?

Thanks a bunch :)
« Last Edit: June 29, 2012, 10:23:06 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Setting character movement to fixed update
« Reply #1 on: June 29, 2012, 05:06:07 PM »
Some actions have a Fixed Update option you can check. I'm not at the office right now to check...

Which actions would you need to have this option?

Neptune_Imaging

  • Playmaker Newbie
  • *
  • Posts: 27
Re: Setting character movement to fixed update
« Reply #2 on: June 29, 2012, 05:35:42 PM »
I have no idea right now... I am trying to solve an issue with cloth simulation jittering in forward motion and I am using a translate action so I guess fixed update would be on the Translate action, especially if i am using cloth sim...

I am looking through the actions now, and i don't see a fixed update checkbox :(
« Last Edit: June 29, 2012, 05:50:48 PM by Neptune_Imaging »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Setting character movement to fixed update
« Reply #3 on: June 29, 2012, 07:28:26 PM »
Ahhh, sorry I was thinking of Late Update, which is more commonly used...

If you want to do a quick test, open Translate.cs and change:

public override void OnUpdate()

to:

public override void OnFixedUpdate()

Meanwhile I'll think about a more generic solution...

Neptune_Imaging

  • Playmaker Newbie
  • *
  • Posts: 27
Re: Setting character movement to fixed update
« Reply #4 on: June 29, 2012, 08:12:09 PM »
Perfect :) That fixed it!!! Thanks Alex

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Setting character movement to fixed update [SOLVED]
« Reply #5 on: June 29, 2012, 10:22:21 PM »
Good to know! You should probably keep the original action, and make a new one called TranslateFixedUpdate.cs (change the class name too).

And I'll think about the best way to expose this option in actions...

Neptune_Imaging

  • Playmaker Newbie
  • *
  • Posts: 27
Re: [SOLVED] Setting character movement to fixed update
« Reply #6 on: June 29, 2012, 11:59:13 PM »
How would I modify the action?

EDIT: I am looking at the code, i can modify it to add a checkbox

EDIT 2: Gonna leave it alone for now...it shouldn't mess up anything
« Last Edit: June 30, 2012, 12:33:26 AM by Neptune_Imaging »