Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get nearest point problem
#10
Ok, I looked into your project. To summarize, you are expecting that variables spawn_pos and 2 to have similar values, since their inputs are similar, but these screenshots show very different values. The reason is not due to some bug of Curvy Splines or its Playmaker addon, but due to the fact that spawn_pos's value is modified somewhere in your graph after it has been assigned a correct value by the action in you screenshot. What you see in your screenshot is its value after modification. Here is its value at assignment, as seen in my debugger:
(0, 0, -38.6)
   
You can see that value, without debbuger, by assigning the output of the action to some new variable that is used nowhere else.
In general, try always to assign values to different variables, it avoids confusion. For example you have a store_pos variable that depending on the moment in the execution of the graph stores either a tf or a distance. It is always better to have a variable storing the tf, and another storing the distance. I know that handling numerous variables in visual programming can take more effort than in written code, so I understand why you would like to reuse variable to store different things in it. It's up to you to weight the pros and cons of reusing variables.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
Get nearest point problem - by Lupp_ - 02-28-2021, 12:43 AM
RE: Get nearest point problem - by _Aka_ - 03-01-2021, 09:54 AM
RE: Get nearest point problem - by Lupp_ - 03-01-2021, 02:43 PM
RE: Get nearest point problem - by _Aka_ - 03-01-2021, 03:00 PM
RE: Get nearest point problem - by Lupp_ - 03-01-2021, 04:34 PM
RE: Get nearest point problem - by Lupp_ - 03-01-2021, 10:18 PM
RE: Get nearest point problem - by _Aka_ - 03-02-2021, 10:43 AM
RE: Get nearest point problem - by Lupp_ - 03-02-2021, 01:48 PM
RE: Get nearest point problem - by _Aka_ - 03-02-2021, 02:42 PM
RE: Get nearest point problem - by _Aka_ - 03-03-2021, 11:28 AM
RE: Get nearest point problem - by Lupp_ - 03-04-2021, 10:19 PM
RE: Get nearest point problem - by _Aka_ - 03-05-2021, 10:33 AM
RE: Get nearest point problem - by Lupp_ - 03-05-2021, 02:53 PM
RE: Get nearest point problem - by _Aka_ - 03-05-2021, 03:45 PM
RE: Get nearest point problem - by Lupp_ - 03-05-2021, 06:02 PM
RE: Get nearest point problem - by _Aka_ - 03-06-2021, 12:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Connections Problem Juton 3 16 03-06-2024, 10:41 AM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Connection "next' control point jh092 3 15 11-22-2023, 11:47 AM
Last Post: _Aka_

Forum Jump: