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 Thumbnail(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 Thumbnail(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
Question Spline path "Range" option: how to go from end to start CP? niuage 4 10 03-07-2022, 10:48 AM
Last Post: niuage
Question Generating a path from selected point to the beginning of spline on a closed spline? Zendariel 5 409 10-29-2021, 01:57 PM
Last Post: _Aka_
  GameObjects that move along the path of Curvy Splines will protrude. yanke 5 409 10-26-2021, 09:59 AM
Last Post: _Aka_
  ScanConnections() causes heavy load in play mode, even with all Curvy objects removed bennett 5 799 07-23-2021, 03:32 PM
Last Post: bennett

Forum Jump: