Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to create a moving train that slows and stops at stations
#5
Hi,
In your message, I distinguish two different issues:
1- The gap appearing between cars: This is something that naturally happens with time due to consecutive operation on floats. There are different ways to try to reduce the issue. One that is already coded can be found in TrainCarManager.LateUpdate(), TrainCarManager being the script used in the scene 12_Train where it manages a train with multiple cars in it. I believe that by following that example, you can fix your issue.
Also, knowing that floats are the most precise between 0 and 1, try using Relative Position Mode and Move Mode, and see if it helps.
2- The impossibility to set a value to the position: I don't have an explanation for this. Are you sure you don't have some code setting the Position value each frame?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Trying to create a moving train that slows and stops at stations - by _Aka_ - 09-07-2018, 04:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 925 09-23-2025, 09:33 AM
Last Post: _Aka_
  Create Mesh Node, Make Static Options rickgplus 1 1,821 01-23-2025, 10:12 AM
Last Post: _Aka_
  Moving Platform Kokoriko49 8 4,290 09-23-2024, 09:20 AM
Last Post: _Aka_
  Train-Wagon Wheels stathias 3 2,226 08-30-2024, 12:46 PM
Last Post: stathias

Forum Jump: