playMaker

Author Topic: Why OnFixUodate function can't be called? what need i do for it ?  (Read 1744 times)

liu396155102

  • Playmaker Newbie
  • *
  • Posts: 5
why OnFixUodate function can't be called? what need i do for it ?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Why OnFixUodate function can't be called? what need i do for it ?
« Reply #1 on: March 30, 2015, 06:36:43 AM »
Hi,

 you are building custom actions right?

 you need to explicitly declare you want to use fixedupate on the awake.

Code: [Select]
        public override void Awake()
        {
            Fsm.HandleFixedUpdate = true;
        }

and then you'll get it. Check the "AddForce" action to see a working implementation.

 Bye,

 Jean

liu396155102

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Why OnFixUodate function can't be called? what need i do for it ?
« Reply #2 on: March 30, 2015, 11:34:36 PM »
Get it  thanks very much .. ;D