Help with motion vectors/ Making a jumping back motion.

Started by Avient. on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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:

 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just use negative integers
Tue, 06/14/2022 - 15:13

just use negative integers

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
or multiply everything with …
Tue, 06/14/2022 - 15:14

or multiply everything with -1 or subtract everything from 0 to get the additive inverse the value

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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! 

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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"

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 :)