playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - krmko

Pages: 1 [2] 3 4 ... 67
16
PlayMaker Help / Re: Get Rotation Problem
« on: February 02, 2020, 07:38:25 AM »
Hi Jean,

sorry for being a bit late. What'a s tripod axis?



17
Hey,

sorry for late response. I'll report it via bug report in Unity too.

18
PlayMaker Help / Re: Get Rotation Problem
« on: January 19, 2020, 03:17:34 PM »
For example, two red cubes are rotated the same



But one has 0, 0, -50 rotation, other has 140, 90, 90.

Whatever i choose, quaternion, euler, x, y, z, i can only get it right via gizmo. It's like it's missing one more axis.



The only thing is that the object that should rotate is scaled differently, it is elomgated to 2 via x. How to take that into account? Maybe get the direction?

19
PlayMaker Help / Re: Get Rotation Problem
« on: January 19, 2020, 08:55:34 AM »
I tried setting the rotation then getting it.

When using euler angles instead of 0, -20, -90 i get -5.12243e-05, 340, 270.

20
PlayMaker Help / Get Rotation Problem [SOLVED]
« on: January 18, 2020, 02:26:17 PM »
Hi guys,

I'm doing some 3D for the first time, though i'm doing well there's something i can't figure out. I have an object that's not parented to anything and has rotation 0, 0, -15 set via transform in the inspector.

However, when i use Get Rotation to get its rotation i get something like -270, 0, 0. I tried self world, eulers, quaternions, tons of other actions, delaying the start and so on but i still can't get it the way it is displayed.

Any advice?

21
K, i'll crosspost.

22
2018.3.7, PM Beta 16

23
Bump

24
PlayMaker Help / Re: Error Loading Action - Index was out of range
« on: January 16, 2020, 02:04:26 AM »
Thanks, i'll give it a go.

25
PlayMaker Help / Re: Error Loading Action - Index was out of range
« on: January 14, 2020, 11:51:28 AM »
Any news on this one? Some more appeared too:

Code: [Select]
Error Loading Action: State 1 : HutongGames.PlayMaker.Actions.SetProperty : targetProperty
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at HutongGames.PlayMaker.ActionData.GetFsmProperty (HutongGames.PlayMaker.Fsm fsm, System.Int32 paramIndex) [0x00000] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1872

  at HutongGames.PlayMaker.ActionData.LoadActionField (HutongGames.PlayMaker.Fsm fsm, System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00279] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1092

  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.ActionData+Context context, System.Int32 actionIndex) [0x00260] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:959

Code: [Select]
Error Loading Action: State 1 : HutongGames.PlayMaker.Actions.SetProperty : everyFrame
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at HutongGames.PlayMaker.ActionData.LoadActionField (HutongGames.PlayMaker.Fsm fsm, System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00399] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1124

  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.ActionData+Context context, System.Int32 actionIndex) [0x00260] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:959

Code: [Select]
Error Loading Action: State 1 : HutongGames.PlayMaker.Actions.SetProperty : debug
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at HutongGames.PlayMaker.ActionData.LoadActionField (HutongGames.PlayMaker.Fsm fsm, System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00399] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1124

  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.ActionData+Context context, System.Int32 actionIndex) [0x00260] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:959

26
PlayMaker Help / Re: Get accurate speed of a game object
« on: January 12, 2020, 03:49:25 PM »
Probably both last and current frame positions are being taken in the same frame, try adding next frame event in between.

27
PlayMaker Help / Re: Get accurate speed of a game object
« on: January 12, 2020, 05:09:03 AM »
You don't need to use physics actions, subtract the last frame position from current position and there's your speed. If the value is negative, multiply it by -1 so you get te positive value if you need it in that format.

28
PlayMaker Help / Re: Renaming Global events
« on: January 11, 2020, 12:28:37 PM »
Haha my bad, i'm reading variables instead of events all the time, sorry :D I am messing with some globals right now so i must have switched my brain on that.

Thanks for the footer.

The idea for events is great, i don't know why it's not allowed to change the name of the global event in a normal way.

29
PlayMaker Help / Re: Renaming Global events
« on: January 11, 2020, 12:12:35 PM »
No, not events, variables. I suppose i didn't explain it quite well.

Instead of using a global variable Ball, you will put a local variable Ball in the variable manager and get the value from that object with get fsm variableType or set it with set fsm variableType. Only global variable will the the reference to the variable manager, nothing else. It has one extra step, but it keeps the project tidy. If something screws up with global variables, and usually does, you're toast.

You can also have multiple game objects for multiple variable types (player variables manager, weapon variables manager and so on) and reference them via global variables.

30
PlayMaker Help / Re: Renaming Global events
« on: January 11, 2020, 11:36:17 AM »
After years of using, my best advice on Global Variables is - don't use them. They're extremely convenient and my hand always moves towards that "create global variable" button. But the whole system is messy and problematic, so it's best to use one object which will be referenced by one single global variable as the global variable manager and whenever you need to get or set something just use get fsm/set fsm and voila.

As for moving variable from global to local and global again, i haven't tried it, don't think that can end up well or even work :P

Pages: 1 [2] 3 4 ... 67