Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Lincoln on June 24, 2018, 12:19:51 AM

Title: Set Velocity error _ requires rigid body component (SOLVED)
Post by: Lincoln on June 24, 2018, 12:19:51 AM
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.
Title: Re: Set Velocity error _ requires rigid body component
Post by: Kathar 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 :)
Title: Re: Set Velocity error _ requires rigid body component
Post by: Lincoln on June 24, 2018, 10:19:31 AM
Thank you very much, that was it. Sorted out.