Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Handrews on September 07, 2020, 08:12:16 PM

Title: Get the direction an object is moving
Post by: Handrews on September 07, 2020, 08:12:16 PM
How can i get the direction an object is moving to rotate that object so it looks to that direction?
Title: Re: Get the direction an object is moving
Post by: djaydino on September 08, 2020, 09:00:40 AM
Hi.
Have you tried "Smooth Look At Direction"
Title: Re: Get the direction an object is moving
Post by: Handrews on September 08, 2020, 09:33:05 AM
Yeah but what i need is the direction or angle the object is moving, and later use that to rotate it to that direction.
Title: Re: Get the direction an object is moving
Post by: djaydino on September 08, 2020, 02:46:15 PM
Hi.
Maybe Get Rotation and set to local
Title: Re: Get the direction an object is moving
Post by: Handrews on September 08, 2020, 03:24:38 PM
The object is not rotating while moving, that is the problem. I need that the character i control looks to the same direction is moving. I can't get the rotation because it is not rotating, just moving in diferent axes but looking to the same direction at all time.

That's why i need to get the direction the character is moving to make it rotates every frame to that direction.