Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cape Movement > "Simulation" physics is weird #15

Closed
Scarlaid opened this issue Mar 23, 2022 · 7 comments
Closed

Cape Movement > "Simulation" physics is weird #15

Scarlaid opened this issue Mar 23, 2022 · 7 comments

Comments

@Scarlaid
Copy link

Scarlaid commented Mar 23, 2022

How to reproduce:

  • Install the mod
  • Go to Cape Movement > Simulation
  • Jump off a building Let the player fall down while in F5 (Freelook for better view)
  • While falling, the cape now define a new "gravity definition"
Video to show the movement: https://streamable.com/p2d5jv

image

@tr7zw
Copy link
Owner

tr7zw commented Mar 23, 2022

There is nothing wrong in that video? You have enabled that the cape has waves in it the entire time, so it has waves in it while falling too.

@Scarlaid
Copy link
Author

There is nothing wrong in that video? You have enabled that the cape has waves in it the entire time, so it has waves in it while falling too.

What I'm stating isn't about the wavy cape, it's the "Simulaton", the cape having weird physics with this option, when falling down it just clipping through the playerhead

@Scarlaid
Copy link
Author

Scarlaid commented Mar 23, 2022

Even turning that wavy cape off, the cape still seems to clip

image

@tr7zw
Copy link
Owner

tr7zw commented Mar 23, 2022

Oh that. The cape "simulation" is a reaaaally basic "stick simulation" (from https://youtu.be/PGk0rnyTa1U?t=315 ) that basically knows nothing about the outside world. So the cape won't interact with blocks, the player head, other entities etc. (this is also the reason the cape is calculated as a 2d object) There is a reason that a really 100% good physics cape is $10 a month (https://minecraftphysicsmod.com/pro), this is just a hobby developer alternative to this^^. Making the cape react to the arms/head/blocks would take a looooot of time.

@tr7zw
Copy link
Owner

tr7zw commented Mar 23, 2022

The only input the simulation has is the players relative movement, and the only constraint it has is that it can't flop to the front of the player + a tiny bit of stiffness so it can't fully fold into itself.

@Scarlaid
Copy link
Author

ah, understood, this is my first time ever seen this "simulation", kinda misunderstanding it as "bug". 👀

@Scarlaid Scarlaid changed the title Cape Movement > "Simulation" is actually really buggy Cape Movement > "Simulation" physics is weird Mar 23, 2022
@tr7zw
Copy link
Owner

tr7zw commented Mar 23, 2022

Personally, I fully expected this issue to be about the only "real bug" where I'm currently still stuck on how to handle it correctly, that is getting the cape over your head like this, and then moving backward. The cape is not allowed to overrotate to get in front of the camera, due to the stiffness it can't just fall down into itself, so it does stay up and glitches around a bit. No clue how to handle that yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants