Help with motion vectors/ Making a jumping back motion.

Started by Avient. on Tue, 06/14/2022 - 14:26

Topic category: Help with modding (Java Edition)

Last seen on 10:32, 23. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with motion vectors/ Making a jumping back motion.
Tue, 06/14/2022 - 14:26

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:

 

Last seen on 04:03, 14. Aug 2022
Joined May 2022
Points:

User statistics:

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

just use negative integers

Last seen on 04:03, 14. Aug 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 10:32, 23. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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! 

Last seen on 21:38, 16. Aug 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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"

Last seen on 10:32, 23. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 :)