Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aligning objects along a banking path
#1
I was testing curvy with a roller coaster design. I have support beams along the curve. The beams look fine when the roller coaster tracksĀ are horizontal with each other, but when I have the rails banking I can't figure out how I can get the support beams to align with the rails.

I have attached an image showing the issue. The horizontal support could be aligned by changing the volume spot rotation from horizontal to full, but I'm not sure what to do about the two vertical support beams.

I couldn't find anything in the examples or on this forum when trying to attempt something like this. What would be the best way to handle this?


Attached Files Image(s)
   
Reply
#2
Where's the difference between the support beams and the wooden planks?
Reply
#3
The vertical support beams have rotation mode set to "horizontal" in the volume spots panel. The wooden planks have the rotation mode set to "full". Is there a way to have objects set to horizontal rotation, but have their height align with the tilted spline at their offset?

Here is another attachment with the horizontal beam turned off. The vertical beam on the left needs its height set a little lower while the beam on the right needs its height set a little higher.


Attached Files Image(s)
   
Reply
#4
Hm, guess you'll need to divide the support beam from it's poles and add a custom module. Place the beam like the planks, then use the generated Spots to feed a custom module.

That module takes the spots as input and outputs a set of new spots that you feed to CreateMesh, thus creating the poles. The input spots provide all the neccessary information (position and rotation) that you need to calculate the starting position of the poles (project from center along rotation axis with 1/2 track width). For each input spot you'll calculate two output spots then.
Reply
#5
(01-06-2016, 06:57 PM)Jake Wrote: Hm, guess you'll need to divide the support beam from it's poles and add a custom module. Place the beam like the planks, then use the generated Spots to feed a custom module.

That module takes the spots as input and outputs a set of new spots that you feed to CreateMesh, thus creating the poles. The input spots provide all the neccessary information (position and rotation) that you need to calculate the starting position of the poles (project from center along rotation axis with 1/2 track width). For each input spot you'll calculate two output spots then.

Thanks for the information. I'm still new at using curvy and hadn't thought about chaining modules in such a way. That makes sense and I will give that a try.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ScanConnections() causes heavy load in play mode, even with all Curvy objects removed bennett 5 359 07-23-2021, 03:32 PM
Last Post: bennett
  Questions about Generator: mesh/objects within spline, snap to control point dartboard 5 780 06-09-2021, 12:42 PM
Last Post: _Aka_
Shocked Change spline path at runtime burn0815 7 1,235 05-27-2021, 08:27 PM
Last Post: _Aka_
  Create a path with Curvy from a "position" animation with several keyframes mc_deimon 1 438 05-20-2021, 10:04 AM
Last Post: _Aka_

Forum Jump: