Raised This Month: $ Target: $400
 0% 

[Tracehull PlaneNormal] if plane is more than x degrees inclined then ...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-12-2013 , 16:19   [Tracehull PlaneNormal] if plane is more than x degrees inclined then ...
Reply With Quote #1

Hello Alied Modders, Its DareDevil here again...


Lets say that those grass hills are 90 degrees inclined.

Now what i want to do is that if player go standing here in grass hills
I do tracehull get planenormal and somehow calculate output of planenormal to angles and check
if the ground is inclined more than 90 or -90 degrees.
( if it is i just calculate angle to velocity and push player away from there, down... thats the part what i can do )
I dont understand those vector what planenormal give me, can someone translate them for me?

And as always, Thanks!
.Dare Devil. is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 07-13-2013 , 12:47   Re: [Tracehull PlaneNormal] if plane is more than x degrees inclined then ...
Reply With Quote #2

vector_to_angle(Float:vector[3], Float:angle)
hmm, that was easy. now i also know what that planenormal is...
.Dare Devil. is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-13-2013 , 12:56   Re: [Tracehull PlaneNormal] if plane is more than x degrees inclined then ...
Reply With Quote #3

When planeNormal[2] is <= 0.7, player can't stand on it.

You can retrieve angle doing this : 90.0 - floatasin(planeNormal[2], degrees)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 06:28.


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