playMaker

Author Topic: vector 3 clamp  (Read 2152 times)

drakwon

  • Playmaker Newbie
  • *
  • Posts: 34
vector 3 clamp
« on: March 10, 2018, 10:59:23 PM »
My vector 3 clamp doesnt seem to be working properly, I am using to clamp the mag. of my input axis at 1, however when I am moving diagonally, it sets each value to .7 and adds them together giving me a mag. of 1.4 .  Can anyone tell me what im doing wrong?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: vector 3 clamp
« Reply #1 on: March 11, 2018, 08:27:42 AM »
Hi.
Can you show an image/video from your actions.

drakwon

  • Playmaker Newbie
  • *
  • Posts: 34

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: vector 3 clamp
« Reply #3 on: March 13, 2018, 04:50:45 PM »
Hi.
The clamp does work properly.
And the player moves at the same speed to every direction.

The Clamp magnitude is not calculated x + z it has a different calculation than the 'Store Magnitude' on the Get Axis Vector'

In the playmaker editor you can check 'Debug' (Below the states, on the left from the 'Action browser button')
Then you can see the values on the actions (also when playing)

Play around with some lower values so you can see what it does :)


drakwon

  • Playmaker Newbie
  • *
  • Posts: 34
Re: vector 3 clamp
« Reply #4 on: March 15, 2018, 07:09:33 PM »
My character is not moving at the same speed in every direction, diagonally he moves faster.