creating a road with natural banking (Sweep + matrix transform?)

   2433   2   1
User Avatar
Member
1178 posts
Joined: April 2017
Offline
Hi!

I would like to build a road with natural banking. I've managed to create a line with a @bank (from -3.14 to 3.14) that changes depending on the curves. Now, I'm trying to use that info to influence a sweep but I'm completely lost. I tried setting a matrix and using the rotate function but it's clearly not working. Just the matrix (no rotation) already doesn't work.

First off, am I using the right method by creating a matrix (tangentu, up vector, cross product, point position) and using the rotation function?

Thanks for any help. I've been doing tests for the past 2 days.

(I'm new to matrices by the way, be gentle!)

-Olivier
User Avatar
Member
32 posts
Joined: Dec. 2014
Offline
Maybe you can start with this:

houdiniPill_03. Curve banking using VEX

https://vimeo.com/222643398 [vimeo.com]
User Avatar
Member
1178 posts
Joined: April 2017
Offline
Thanks!
  • Quick Links