Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Thore on September 14, 2019, 01:32:22 PM

Title: 4 Actions (Vector Multiplication, Clamp Velocity and Float Change Sign)
Post by: Thore on September 14, 2019, 01:32:22 PM
Hi,

I needed these (and many more) custom actions and thought they might be useful to others, too.

Vector Multiply XY & Vector Multiply XYZ
Lets you multiply the vector axes individually.

Clamp Velocity 2d
As it says on the tin. The game object cannot move faster than specified.

Float Change Sign
Lets you change +/- of a float. The difference to the usual multiply *-1 is that the outcome is hard-set.
Title: +1 SetCapsuleCollider2D
Post by: Thore on September 14, 2019, 02:37:37 PM
Allows to set all the properties of a Capsule Collider 2D.

Mod: posted this into the wrong forum. Should be in Share Actions.
Title: Re: 4 Actions (Vector Multiplication, Clamp Velocity and Float Change Sign)
Post by: jeanfabre on September 17, 2019, 04:33:21 AM
Hi,

 Cool, I added your CapsuleCollider set action to the Ecosystem (SetCapsuleCollider2dProperties), with some mods as it was not working properly.

- I made a separated action  to set the material as otherwise, your action would always force a value: SetCollider2dPhysicsMaterial2d

- I fixed the fixedupdate call ( you must explicitly tell the action to handle fixedupdate, else it won't work)

- added tooltips


I'll add the other actions you made later on, they also need few tweaks.

Thanks for your contributions!

 Jean