Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Schleckenmiester on February 19, 2019, 03:56:13 AM

Title: Help with character movement [SOLVED]
Post by: Schleckenmiester on February 19, 2019, 03:56:13 AM
I'm trying to make a third person character controller without using the Character Controller action so that I can implement jumping and use Rigidbody to handle the physics. It was all working fine and dandy, I used Get Axis for X and then Set Velocity for that which allowed the character to move along the map and it has gravity. The problem is that if I try to rotate the camera with a mouse like most third person games, the character's direction doesn't rotate because Set Velocity is applying the movement globally. I could use Get Axis Vector, but then the player falls a lot slower. Can anyone help?

I think this (http://forum.unity.com/threads/rigidbody-slow-to-fall-despite-gravity-code-issue.511231/) is the solution in C# but am not sure how to do it in PlayMaker.

EDIT: I figured it out, I just used a different solution. I put a "look at" as a child object in front of the player and used the Move Towards action instead of Set Velocity. Also whenever I moved the camera and pressed one of the arrow keys the player would look in that direction.