Jump to content

how to make right angle(90 degree) spline ?


photo

Recommended Posts

Posted

hi. 

i want spline gonna 90 degree angle.
but don't know how to. 
plz help me

and also i used 2.14 ver unigine but whether it will be applied 2.7 ver? 

화면 캡처 2021-07-14 113027.png

Posted

Hello.
I didn't quite understand what exactly you need.

maybe this will help you

vec3 forward_direction = normalize(next_point - current_point);
vec3 right_direction = normalize(cross(forward, vec3::UP));

vec3 right_point = current_point + right_direction * distance;

image.png

Posted

well, thanks to reply

i tried but didn't succeed ㅠㅠ (actually doesn't understood)

but i found solution! 

i made 3 spine each other and merge point then got i want

i attached file how to

 

thank you! :)

 

  • Like 1
×
×
  • Create New...