playMaker

Author Topic: Get the direction an object is moving  (Read 1123 times)

Handrews

  • Playmaker Newbie
  • *
  • Posts: 36
  • 3D Artist & Game Developer
    • Thetra Games Artstation
Get the direction an object is moving
« 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Get the direction an object is moving
« Reply #1 on: September 08, 2020, 09:00:40 AM »
Hi.
Have you tried "Smooth Look At Direction"

Handrews

  • Playmaker Newbie
  • *
  • Posts: 36
  • 3D Artist & Game Developer
    • Thetra Games Artstation
Re: Get the direction an object is moving
« Reply #2 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Get the direction an object is moving
« Reply #3 on: September 08, 2020, 02:46:15 PM »
Hi.
Maybe Get Rotation and set to local

Handrews

  • Playmaker Newbie
  • *
  • Posts: 36
  • 3D Artist & Game Developer
    • Thetra Games Artstation
Re: Get the direction an object is moving
« Reply #4 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.