AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Angle of the wall (https://forums.alliedmods.net/showthread.php?t=340811)

theqramboq 12-11-2022 13:50

Angle of the wall
 
Is it possible to get the angle of the worldspawn wall? if possible how can i get it?

Natsheh 12-11-2022 19:08

Re: Angle of the wall
 
according to what? player view ?

You can use a traceline and get the Plane of the trace, will return the view of the wall.

theqramboq 12-12-2022 08:51

Re: Angle of the wall
 
I'll take a look at your advice and need some code like below?

Code:

new Float:vPlane[3], WallAngles[3]
               
get_global_vector(GL_trace_plane_normal, vPlane)
                               
vector_to_angle(vPlane, WallAngles)


Natsheh 12-12-2022 12:41

Re: Angle of the wall
 
Quote:

Originally Posted by theqramboq (Post 2795033)
I'll take a look at your advice and need some code like below?

Code:

new Float:vPlane[3], WallAngles[3]
               
get_global_vector(GL_trace_plane_normal, vPlane)
                               
vector_to_angle(vPlane, WallAngles)


Yes but you need coordinates, an start position and an end position, then you execute a traceline using either fakemeta or engine modules.


All times are GMT -4. The time now is 08:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.