# Why are my 3D bullets not shooting at correct YAngle?

0 favourites
• 3 posts
From the Asset Store
Shoot balls to destroy as many blocks as possible, at each stage the game will become more difficult.
• Hello all, I have managed to hack together a pretty decent 3D FPS template, but I can't seem to get my 3D bullets to match the angle the camera shoots at. Can anyone spot what is wrong with them? If you're good at geometry, it may help a lot! Thank you for any assistance!

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• Hard to say what you’re trying to calculate with the angles and how.

If you are just turning you could just set the bullets angle to the cameras angle.

If you look up and down too you can use spherical coordinates to get the orientation from two angles. But your math doesn’t look like that.

Here’s a way to just shoot in the direction the camera is facing. Maybe something like that is what you’re after?

construct.net/en/forum/construct-3/how-do-i-8/bullet-fire-center-screen-3d-166334

• Your solution in the other thread worked perfectly, and it was easy to implement! Thank you very much. I'm developing an FPS template for anyone to use, and this was a major road block. I made sure to credit you in the project files as well!

If you're interested in checking out the template, here is the download link!

Hard to say what you’re trying to calculate with the angles and how.

If you are just turning you could just set the bullets angle to the cameras angle.

If you look up and down too you can use spherical coordinates to get the orientation from two angles. But your math doesn’t look like that.

Here’s a way to just shoot in the direction the camera is facing. Maybe something like that is what you’re after?

https://www.construct.net/en/forum/construct-3/how-do-i-8/bullet-fire-center-screen-3d-166334?kws=3dcamera#forumPost1060482

• 3 posts
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)