Car Shooter
#5

Quote:
Originally Posted by Gamer_Z
Посмотреть сообщение
You can get the vehicle size (array released somewhere on this forum - SEARCH) and vehicle position (GetVehiclePos) and vehicle rotation matrix from GetVehicleRotationQuat (and creating a rotation matrix with GetVehicleMatrix include), then you can check if a line goes through the sphere the vehicle occupies.

http://stackoverflow.com/questions/2...sects-a-sphere
http://gamedev.stackexchange.com/que...here-intersect
http://www.realtimerendering.com/intersections.html

And bytheway.. it's called "Ray-Sphere Intersection".
Thanks.
Reply


Messages In This Thread
Car Shooter - by magnetec - 07.07.2013, 16:20
Re: Car Shooter - by magnetec - 08.07.2013, 08:20
Re: Car Shooter - by Cjgogo - 08.07.2013, 08:29
Re: Car Shooter - by magnetec - 08.07.2013, 08:34
Re: Car Shooter - by magnetec - 08.07.2013, 09:31

Forum Jump:


Users browsing this thread: 1 Guest(s)