Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player to Train
#1
Hi I was trying to figure out in my project I wanted to have a train running around and be able to enter the train and exit with my player even if the train is in moving.  I had done a simple attach script and it works just fine as long as I don't turn on the Orientation.  Once I turn on Orientation it messes with the transform of the player in a way that makes it hard to enter or exit the train.  I really want to use this asset and Orientation with it.  Can you please help me figure this out.

Thank you.
Reply
#2
Hi,
How does your attach script work?
Does setting the controller's orientation mode to None help?
The orientation a controller applies is defined in the ComputeTargetPositionAndRotation method, which you can override if you inherit from any controller class.
If what I wrote did not help, send me a reproduction case. Keep in mind that this forum is public, so do not share Curvy's code in it.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Hey thank you for the your quick responds but I have worked out a new script that fixed the problem. There was nothing wrong with your asset I just wanted your help with using it better in my project. Now I can have my FPS player jump on and off the train at any time smoothly with position and rotation in world space. I have made a script that attaches the RIGIDBODY not the transform. I am really!!! happy!!! that I finally figured it out and now can have tons of fun with your asset. If you or anyone needs to know how this was done just let me know.
Thank you again.
Reply
#4
Glad to hear that, and thanks for being open to help others.
Enjoy Curvy Splines
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Train car orientation on slopes bennidhamma@gmail.com 3 273 03-26-2021, 10:30 AM
Last Post: _Aka_
  How to ping-pong a train? jamesunity 5 1,681 07-13-2020, 11:56 AM
Last Post: _Aka_
  Train tracks with transparent middle? jh092 4 1,352 07-03-2020, 07:13 PM
Last Post: _Aka_
  Trying to create a moving train that slows and stops at stations Novian 11 10,052 12-12-2019, 06:40 PM
Last Post: _Aka_

Forum Jump: