Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player move with object
#2
Hi,

When the Curvy Spline controllers compute where an object should be place, they move the object using either (depending on the value of the Target Component setting):
  • Transform.SetPositionAndRotation
  • Rigidbody.MovePosition
  • Rigidbody2D.MovePosition
In other words , the controllers simply moves objects, nothing special is done to handle riding. If your character controller works with a character riding for example a cube that moves under it (moved by some simple script), then it will work with Curvy Splines. The opposite is also true.

I am not familiar with the starter asset's FPS character controller, so I can't give advise specific to it, but the solution I thought of is to make the character a child of the train. This way moving the train moves the character too, and the character controller moves the character relatively to the train.

I hope this helped. Let me know if you have further questions.
Have a nice day
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
Player move with object - by mcarman - 07-26-2024, 01:04 AM
RE: Player move with object - by _Aka_ - 07-26-2024, 09:57 AM
RE: Player move with object - by mcarman - 07-26-2024, 10:59 PM
RE: Player move with object - by _Aka_ - 07-29-2024, 09:42 AM
RE: Player move with object - by mcarman - 07-29-2024, 06:49 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_
  Morph game object along curve. mikechr2000 5 2,996 02-04-2025, 09:30 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 1,703 08-30-2024, 09:19 AM
Last Post: _Aka_
  Removing the objects behind an object alms94 6 3,548 12-06-2023, 09:31 PM
Last Post: _Aka_

Forum Jump: