Forum Discussion
SantiMun
13 years agoHonored Guest
Suggestions on track-based demo
Hey all! Basically I'm working on a demo in Unity where the character model is on a chair and moves along an invisible rail and goes through a "tour" around the terrain. I am using splines to make ...
boone188
13 years agoHonored Guest
"ElementalSpark" wrote:
Ah! I am doing something very similar. Were you able to keep the view forward? I just purchased the same spline package and after the "track" turned, I was then riding backwards :lol: I need to keep the player looking in the same direction as the splines, any help would be greatly appreciated!
That is what the
transform.rotation = spline.GetOrientationOnSpline( param );
in my preview code sample would do. You also need to make sure the "Rotation Mode" of your spline is set to Tangent.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago
- 9 months ago
- 5 months ago
- 6 months ago
- 7 hours ago