Skip to main content
gamedev.net
🔒 Locked

Casting a ray

Started by Moh_Abed Feb 19, 2003 at 2:55 AM 0 replies 200+ views
Original Post
Moh_Abed
Moh_Abed
i have a 3rd pesron view looking at a character holding a gun. i want to cast a ray from the position of the gun at the direction(rotation) of the gun -or camera- and detect if it touched a mesh. how can i do that. D3DXIntersect(pMesh, GunPos, ??Direction??, ...)
Mohammed Abed

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.