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 ...
ElementalSpark
13 years agoHonored Guest
That is what thetransform.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.
Excellent, thank you! I found that I was selecting the wrong object to have it follow.. All is right in the world now, although I may mess with the code you gave above and see if I can refine my effect a bit. :)
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
- 6 hours ago