Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: CodexStudios on July 28, 2017, 03:35:23 PM

Title: [ActionReq] Get transform angle from a target
Post by: CodexStudios on July 28, 2017, 03:35:23 PM
I am currently working on a third person controller using only playmaker. Now I need want to find the angle of the foot of the player from the ground it is on or a target, so the animator can change it’s state. For example’ My character is walking on a slope that has an angle of 30, i want my character to have a decrease in speed when he is walking to the slope, and change the walking animation, and also when he is walking away from the slope.

Thank you in advance
CodeXStudio,
Title: Re: [ActionReq] Get transform angle from a target
Post by: djaydino on July 30, 2017, 04:09:29 AM
Hi,
Maybe using the 'Get Rotation' Action?

A different way could work maybe is by using 2 ray casts 1 front side and 1 back side of the player detecting the slope.
Title: Re: [ActionReq] Get transform angle from a target
Post by: CodexStudios on July 31, 2017, 11:53:23 PM
Thank you for suggesting. I will try that later. Ill send some updates.

CodexStudios