PlayMaker Updates & Downloads > Share New Actions

Set Position - "additive" option erm... added :)

(1/2) > >>

MaDDoX:
I can't believe I forgot to post this action before, I found it to be absolutely handy in my workflow. Many times all you want to do is offset an object by a certain amount (say, "speed"), and having to fiddle with custom variables to remember the old position and add to it can be a quite cumbersome way to do this. iTween is sheer overkill for such linear, stepped operations and the "translate" action is a continuous, perma-state operation, so very hard to be useful for things other than controllers.

Thus this modified "set position" action, excellent for so many simple translation operations that I wouldn't be able to list them all. Simply replace the default setposition.cs action (in assets/playmaker) and it'll be ready for use. Just toggle on the "additive" button and presto. Enjoy! :)

jeanfabre:
Hi Maddox.

 Very cool , I actually builded the vector3 operator action cause I needed that kind of math, tho slightly different from a straight additive, I often base offset using the start position, not the current, maybe your set position could have an second option to "additive from start", that would then cover both case.

Bye,

 Jean

Andrew.Lukasik:
I dont know if that just my fault but it seems to don't work anymore. Despite "Additive" flag set - it works only as original "Set Position" in my project. Any ideas?

Andrew.Lukasik:
This action needs some more love imo. We need solid and instant Position Offset Action - something that is needed by many beginners and pros, but verbalized probably by no one.

Situation:
I made a prototype door/trap/button/etc as a prefab. And when object is fired by trigger I want to simply move it by its local axis by N in XYZ direction.

Current Solution:
As far as I know its pretty complicated thing to do right now. Actually too complicated as for something that common:
-get pos V3 i local or word pos
-make math on that V3
-now set pos with new V3

It seems easy for coder or pro-user but I've found that it is very hard to do for beginners because they need to know what V3 is and be good with PM (often takes many hours and deep google-research). Result - they give up and I've seen such situations.

Alex Chouls:
Not at my computer right now, but there should be a Translate action that will do that in one step...

Navigation

[0] Message Index

[#] Next page

Go to full version