playMaker

Author Topic: Changing Velocity No matter the Z or -Z  (Read 1364 times)

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Changing Velocity No matter the Z or -Z
« on: October 14, 2020, 02:10:29 PM »
Hey there,

Hoping for some advice - I have a sphere-shaped player and I'm changing the velocity when you hold down the shift key. It all works great except that sometimes the ball is moving on the -Z and sometimes on the Z in different directions.

So just changing the Z to a higher value doesnt work as it only works if the ball is moving on the Z. How would I set this up so that no matter if it's Z or -Z the ball speeds up?

Cheers!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Changing Velocity No matter the Z or -Z
« Reply #1 on: October 15, 2020, 10:38:59 AM »
Hi.
Did you set you velocity to local?

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: Changing Velocity No matter the Z or -Z
« Reply #2 on: October 15, 2020, 02:37:32 PM »
Hey,

Yeah its local by default. Would I need to get Velocity first?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Changing Velocity No matter the Z or -Z
« Reply #3 on: October 16, 2020, 08:15:31 AM »
Hi.
can you show some image or videos of what you have/want.
I'm a bit confused :)