Reply To: BBParameter Vector3 > Transform > Back to Vector3

NodeCanvas Forums General Discussion BBParameter Vector3 > Transform > Back to Vector3 Reply To: BBParameter Vector3 > Transform > Back to Vector3

#12500
Gavalakis
Keymaster

Hello!

Sorry for the late reply.
The automatic conversion that happens between the variables, does not ever change the actual variable type, but it rather only converts -if possible- the value from the source type, to a compatible value for the target type.

Thus:
A “Vector3 -> Transform” conversion, basically sets the target transform.position value to the source Vector3 value.
A “Transform -> Vector3” conversion, sets the target Vector3 value to the source transform.position value. If the source is null though, then the target Vector3 value is set to default(Vector3), which indeed is V3(0,0,0).

Right now, variables conversion in always two-way, but I can take a look at implementing an option to select “In, Out, or Both Ways”. Is that what you are suggesting?

Please let me know if that helps clarifies things, or if by any chance I misunderstood your question, in which case I am sorry 🙂
Thank you!

Join us on Discord: https://discord.gg/97q2Rjh