Hi everyone,
I'm having a strange warning message that seems to pop-up all the time in Unity.
Cannot use 'velocity' on a static body.
UnityEngine.Rigidbody2D:set_velocity(Vector2)
HutongGames.PlayMaker.Actions.SetVelocity2d:DoSetVelocity() (at Assets/PlayMaker/Actions/Physics2D/SetVelocity2d.cs:95)
HutongGames.PlayMaker.Actions.SetVelocity2d:OnFixedUpdate() (at Assets/PlayMaker/Actions/Physics2D/SetVelocity2d.cs:58)
HutongGames.PlayMaker.FsmState:OnFixedUpdate() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:246)
HutongGames.PlayMaker.Fsm:FixedUpdateState(FsmState) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2776)
HutongGames.PlayMaker.Fsm:FixedUpdate() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2080)
PlayMakerFixedUpdate:FixedUpdate() (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFixedUpdate.cs:19)
As far as I can see the player object has a rigidbody2d attached to it. The only FSM that has something related attached to it is the movement FSM. Just a simple velocity2d to act on the Get Axis action.
Does anybody know what I'm doing wrong?
Thanks in advance!
cheers,
Andreas