playMaker

Author Topic: [ActionReq] Get transform angle from a target  (Read 185 times)

CodexStudios

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
[ActionReq] Get transform angle from a target
« on: July 28, 2017, 12: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,

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2305
    • View Profile
    • jinxtergames
Re: [ActionReq] Get transform angle from a target
« Reply #1 on: July 30, 2017, 01: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.

CodexStudios

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: [ActionReq] Get transform angle from a target
« Reply #2 on: July 31, 2017, 08:53:23 PM »
Thank you for suggesting. I will try that later. Ill send some updates.

CodexStudios