Posts: 2
Threads: 1
Joined: Dec 2020
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.
Posts: 2,161
Threads: 96
Joined: Jun 2017
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
Posts: 2
Threads: 1
Joined: Dec 2020
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.
Posts: 2,161
Threads: 96
Joined: Jun 2017
Glad to hear that, and thanks for being open to help others.
Enjoy Curvy Splines