Forum Discussion
mike9189
8 years agoHonored Guest
3rd person space shooter
I am making a third person space shooter. I want to fly in the direction I am looking, i have the camera attached to the ship, but the problem i have is that when I turn the ship goes out of view. Fo...
Fulby
8 years agoHeroic Explorer
You could have the ship attached (i.e. be a child of) of the camera, so it will always appear in front of the camera. This is the opposite of what you have now I think (your description sounds like the camera is a child of the ship).
This probably won't provide good gameplay though as there will be no independent acceleration/turning of the ship. To get that I would make the ship and camera on separate game objects, have a 'target location' which is a child of the camera, and have a script that moves the ship towards the target with limited speed/acceleration. This way it will lag behind when the player moves their head quickly.
This probably won't provide good gameplay though as there will be no independent acceleration/turning of the ship. To get that I would make the ship and camera on separate game objects, have a 'target location' which is a child of the camera, and have a script that moves the ship towards the target with limited speed/acceleration. This way it will lag behind when the player moves their head quickly.
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
- 2 years ago
- 9 months ago
- 8 years ago
- 3 months ago