how to make the weapon shoot to the center of the screen
1 Like
cast ray from center of camera, when left click grab hit object and subtract health
2 Likes
i want the fire when prees left mouse go from the weapon to the center of screen
1 Like
use an empty in front of gun to track to the object you aim at with camera
2 Likes
how to make it track the object i aim at it
1 Like
We salute this guy
1 Like
use an edit object actuator set it to trackTo
1 Like
ok I used the ray because i non find any other way to make the bullet go to crosshair
You must use ray, all the big production games are using it, it is not consuming the resources and it does not generate unecesary physics.
1 Like