playMaker

Author Topic: 4 Actions (Vector Multiplication, Clamp Velocity and Float Change Sign)  (Read 1080 times)

Thore

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
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.
« Last Edit: September 14, 2019, 02:56:19 PM by Thore »

Thore

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
+1 SetCapsuleCollider2D
« Reply #1 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.
« Last Edit: September 14, 2019, 02:55:37 PM by Thore »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15494
  • Official Playmaker Support
    • View Profile
Re: 4 Actions (Vector Multiplication, Clamp Velocity and Float Change Sign)
« Reply #2 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