playMaker

Author Topic: Missing something  (Read 559 times)

Theran

  • Playmaker Newbie
  • *
  • Posts: 9
Missing something
« on: February 13, 2024, 10:46:35 PM »
Havent played around with Unity for over a year and just now jumping back in. Wanted to practice with Playmaker and thought would start easy, but it turns out even with easy, Im doing something wrong. I have any item with a rigidbody that I want to move along an axis when holding a button down and stop when releasing it.

This state part works as expected, it moves when I hit the mouse key. But when release the key it never goes to the stopmove event. Where am I going wrong?

BadgerFarmer

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Missing something
« Reply #1 on: February 17, 2024, 07:21:30 AM »
I guess when you return to the idle state, it doesn't stop adding the force because nothing tells it to. What happens if you put an 'add force' action in the idle state with everything set to 0?

BadgerFarmer

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Missing something
« Reply #2 on: February 17, 2024, 07:36:14 AM »
No, sorry. I just repeated what you did and it works fine. The force stops as soon as I release the mouse button.

Is it maybe something about the shape of the object itself, or the surface it's on?
« Last Edit: February 17, 2024, 07:38:39 AM by BadgerFarmer »

Theran

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Missing something
« Reply #3 on: February 18, 2024, 03:39:35 AM »
I was able to fix it by changing it from owner to specific object. Not sure why had to do it but it fixed the issue.