How to aim the bullet correctly in Jbullet
Posted: Wed Feb 05, 2020 3:58 pm
Im trying to implement jbullet in java, im facing a problem is, how to make capsule bullet correct way to the enemies.
I have try this solution [url]https://stackoverflow.com/questions/117 ... nother[url]
but it seem like not work at all i have try solution in this topic
[url] viewtopic.php?t=10443[url]
but it seem like some func not included in jbullet
like this
thank you for your helping me in this, my english is bad so forgive me please
I have try this solution [url]https://stackoverflow.com/questions/117 ... nother[url]
but it seem like not work at all i have try solution in this topic
[url] viewtopic.php?t=10443[url]
but it seem like some func not included in jbullet
like this
Code: Select all
btVector3 currentLook = rotation * localLook;
btScalar angle = currentLook.angle(newLook);