Help with motion vectors/ Making a jumping back motion.

Started by Avient. on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jun 2022
Points:
427

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Help with motion vectors/ Making a jumping back motion.

So i have this vector procedure that launches the player forward the way they're looking. I'm trying to get the exact effect but it's supposed to launch the player backwards while keeping the exact direction they're facing. Help is much appreciated!

 

The Vectors:

 

Active 3 years ago
Joined Jun 2022
Points:
427

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
I just managed to fix it as…
Tue, 06/14/2022 - 15:28

I just managed to fix it as well by adding - in custom code. Thank you for the help! 

Active 6 minutes ago
Joined Jul 2020
Points:
1236

User statistics:

  • Modifications: 5
  • Forum topics: 90
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 233
You don't need custom code,…
Tue, 06/14/2022 - 15:46

You don't need custom code, you just multiply the forward motion vector by "-1"

Active 3 years ago
Joined Jun 2022
Points:
427

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
Yes of course but i'm…
Tue, 06/14/2022 - 16:52

Yes of course but i'm actually more familiar with fixing stuff in custom code, for me it's easier to get an overview in code editor. 
Works either way :)