Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: TrentSterling on September 21, 2014, 09:37:07 AM

Title: Multiply Velocity
Post by: TrentSterling 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?)

(http://i.imgur.com/08Im1xa.png)

Title: Re: Multiply Velocity
Post by: jeanfabre on November 24, 2014, 03:03:21 AM
Hi,

 ok, it's on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181), thanks for contributing!

MultiplyVelocity (https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Physics/MultiplyVelocity.cs)

 Bye,

 Jean
Title: Re: Multiply Velocity
Post by: TrentSterling on December 14, 2014, 09:44:28 PM
Thanks Jean