Forum Discussion
Futuristichub
10 years agoHonored Guest
Harrier Jet Scripting Problem
Hey everyone! I've almost got my project controls complete! I need one more thing. I can't seem to get my script to allow my vehicle in the air to thrust forward and then backwards in Zero Gravity. Th...
Futuristichub
10 years agoHonored Guest
"cybereality" wrote:
You're adding a direction vector to itself, which doesn't make sense.
You need to do something like this:transform.position += transform.forward * Time.deltaTime * movementSpeed;
Thank you! It does work but its a sudden forward. I tried that before and the same thing. I'm trying to get a gradutal thrust and backwards thrust with "W" and "S" key. I almost got it actually. I have Pitch, Yaw, Roll, and up and down. Now all I need is a thrust. So close!!
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
- 5 months ago
- 10 months ago
- 9 months ago