Raised This Month: $ Target: $400
 0% 

plane normal


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-04-2019 , 12:44   plane normal
Reply With Quote #1

Hello, I'm trying to angulate entity according to the ground, but keep its view direction.


I tried to get global plane normal vector and convert it to angle vector, but didn't work properly.

Code:
engfunc(EngFunc_MakeVectors, vecAngles); static Float:vecPlaneNormal[3]; global_get(glb_trace_plane_normal, vecPlaneNormal); vector_to_angle(vecPlaneNormal, vecAngles); set_pev(this, pev_angles, vecAngles);

Any suggestion?
__________________








CrazY. is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:30.


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