Problem with slope angles
Hi, thanks for passing by! So i've begun setting up blueprints in order to get quake-like acceleration when in slopes. So far, it looks like in this screenshot.
This is on event tick, the variable speed is fed into maxwalkspeed in another blueprint. So far, whenever my character is on a slope, he gets boosted, whatever the direction he's going in is. I'd like him to be boosted only while going downwards. I think my method is a bad one. Could anyone help me come up with a better idea?
Thanks in advance.
asked Jul 18 '17 at 09:07 AM in Blueprint Scripting
You can make dot product with (0,0,1) and impact normal I think, to get which angle/slope you have under character feet.
answered Jul 18 '17 at 09:29 AM
Hi, you will have to calculate the angle of normal vector of plane and a player character. in current situation, i guess, it won't be meeting the condition, as rotation will be constant '0' .
let me know if it works.
answered Jul 18 '17 at 09:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here