简体   繁体   中英

My player shoot the bullets 90 dregrees off

This may be an easy task, but I cant figure it out. This is a 2d game using the LWJGL library. I've created the player using openGL and the bullets with openGL. The bullets go 90 degrees more to the right.

Classes:

Game class

Player class

Bullet class

Update class(not important)

Render class(not important)

笔画演示

So, how can I fix that? If its only adding 90 degrees can you tell me how?

Thanks

LWJGL使用弧度,因此在转换为弧度之前,您需要将度数加90。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM