playMaker

Author Topic: Set Velocity error _ requires rigid body component (SOLVED)  (Read 1280 times)

Lincoln

  • Playmaker Newbie
  • *
  • Posts: 2
When adding the set velocity action in the state, the error above occurs, stating that it requires rigid body component. Since I have already added the rigid body component to the player, as shown in the figure above. I started using the playmaker this week and I caught on in that first part of making the character walk for that reason.
« Last Edit: June 24, 2018, 10:23:13 AM by Lincoln »

Kathar

  • Playmaker Newbie
  • *
  • Posts: 48
Re: Set Velocity error _ requires rigid body component
« Reply #1 on: June 24, 2018, 05:00:58 AM »
There's two types of physics systems in Unity, one for 2D physics (2-axis), and one for 3D (3-axis). As your GameObject has a rigidbody 2D component, you'll need to set the velocity of it using the 'Set Velocity 2d' Action. The one you're trying to use is for the 3D physics system :)

Lincoln

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Set Velocity error _ requires rigid body component
« Reply #2 on: June 24, 2018, 10:19:31 AM »
Thank you very much, that was it. Sorted out.