#Help with Vector 3 normalization
1 messages · Page 1 of 1 (latest)
Here's the full sequence
Do I need to convert the Set Y float output to a transform and then connect it to Vector 3 Normalize?
I think you are trying to do this
It breaks with simple float normalization
yeah so try and get the Y instead of setting it
ah okay
That doesn't work either, it's harder since I'm also trying to get camera rotation (Cinemachine Freelook) and getting the model to move in the direction according to the camera. The Set Y was basically there to ground the gameobject from entering orbit.
For Example, if I press S while my camera is pointing down, it starts floating up.
(Sorry if this is too complicated to understand, English isn't my first language)
None of this is now connected to the main sequence chain
Then i don't know if this would work but connect the Set y before the set linear velocity
I see, I'll do that now, thank you so much!
Did it work?
Unfortunately no, but I maybe have a new idea in mind, I'm gonna try it and tell you how it works
Cool
@gaunt grove Hey, fixed it. It was as simple as creating a complete new vector purely to process the movement
ah i see perfect
Just in case, there's different normalize nodes.
One of those can accept vector 3 as input. And gives v3 output. And then can use get X or Y or Z if needed.
Cool that you made it work at the end ✌️
What node turned red with this? Hmm dynamic fetch usually means you are getting a changing variable data without saving it first
There weren't any which turned Red, that confused me too because then I could've easily debugged it. Though I asked Claude about my nodes and it made me realize just how many useless calculations there were. I simplified it down and then placing "Get X and Get Y" after "Add inputs" then creating a new vector 3 transform value simply just solved all the complications for me
Thats good to get results. But knowing why you had an error is important as well..
Sometimes clicking the error in the console takes you to the source of the error - where the red node is
You can also use the error finder uploades here
Find the subtitle:
*🤬 The uVS-specific error messages are annoying" there's a errorFinder.cs you can use to quickly find red nodes