playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Download the
Ecosystem Browser
to find new actions, samples. etc.
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Getting surface angle
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Getting surface angle (Read 953 times)
IIKII
Full Member
Posts: 137
Lonely developer
Getting surface angle
«
on:
September 17, 2019, 05:31:46 AM »
Hi, i am trying to get a angle between a floor and the player to see if the player is on a slope. So if the angle is bigger than 30, the animation and speed will change.
How do i achieve that?
Logged
Support me on Patreon for free adventure games and development insights -
https://www.patreon.com/koexstudio
djaydino
Administrator
Hero Member
Posts: 7615
Re: Getting surface angle
«
Reply #1 on:
September 17, 2019, 07:57:42 AM »
Hi.
I looked on unity forums and found this :
https://answers.unity.com/questions/50774/checking-slope-angle-the-object-is-standing-on.html
So i made a action (attachment below) based on this answer, but i did not test it tho.
Let me know if it works.
To use you need to get the contact normal (with Get Colission Info action)
and use in the action.
also select the up direction from the normal.
Logged
Join the PlayMaker Discord Channel!
IIKII
Full Member
Posts: 137
Lonely developer
Re: Getting surface angle
«
Reply #2 on:
September 17, 2019, 11:22:04 PM »
Yeah i think it works but i am using raycast.
Thanks for the action
Logged
Support me on Patreon for free adventure games and development insights -
https://www.patreon.com/koexstudio
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Getting surface angle