Make entity move in the direction its looking?

Started by Spyjetray on Mon, 11/23/2020 - 19:48

Topic category: Help with modding (Java Edition)

Last seen on 14:17, 4. Dec 2020
Joined Jul 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make entity move in the direction its looking?
Mon, 11/23/2020 - 19:48

Hi,

I have made a procedure which makes an entity look in the same direction that the player looks but now I want to make the entity move in that direction, turning when the player also turns.

How do I achieve this as using straight-up movement vectors cause the entity to fly off in a specfic direction which doesn't work so what do I need to do to make it move in the direction it (and the player) is facing?

Thanks

Last seen on 17:57, 8. Jan 2021
Joined Dec 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Dude how did you make the…
Mon, 11/30/2020 - 21:42

Dude how did you make the entity so it’d look in the same direction?