playMaker

Author Topic: Multiply Velocity  (Read 2731 times)

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Multiply Velocity
« on: September 21, 2014, 09:37:07 AM »
I got tired of Get Velocity, Multiply Vector3 by Vector3, and then Set Velocity.

Didn't see it in the ecosystem or through a quick search.

Figured it might be worth an upload here.

I typically use it for a fake horizontal friction while leaving the vertical axis velocity unmodified. The action works on FixedUpdate and I commented out setting velocity OnEnter. (Because that would fire onUpdate once right? Effectively slowing things down more when the state is first entered?)



« Last Edit: September 21, 2014, 09:41:37 AM by TrentSterling »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Multiply Velocity
« Reply #1 on: November 24, 2014, 03:03:21 AM »
Hi,

 ok, it's on the Ecosystem, thanks for contributing!

MultiplyVelocity

 Bye,

 Jean

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Multiply Velocity
« Reply #2 on: December 14, 2014, 09:44:28 PM »
Thanks Jean