Getting a normal vector
I want to get the normal vector for the part of the map that the user is aiming at; this gets me the location:
PHP Code:
|
Re: Getting a normal vector
get_user_aiming()
Or you could fire a traceline and get the end point. Check FM Utilities for that. |
Re: Getting a normal vector
what ?
I'm trying to get a normal to a part of the map. http://cgkit.sourceforge.net/tutoria...screenshot.jpg That's what normals look like. The normal does not depend on the players' orientation relative to the surface. EDIT For clarification, in get_user_origin(...) that 3 is the flag for: 3 - End position from eyes (hit point for weapon) That would be the surface-point I want the normal from. |
Re: Getting a normal vector
Code:
|
| All times are GMT -4. The time now is 01:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.