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

Physics(Kisak Physics) #8

Open
LWSS opened this issue Oct 6, 2020 · 3 comments
Open

Physics(Kisak Physics) #8

LWSS opened this issue Oct 6, 2020 · 3 comments

Comments

@LWSS
Copy link
Contributor

LWSS commented Oct 6, 2020

This is an issue dedicated to the rebuilt open-source physics_client.so in branch physics-test Folders: (/vphysics and /ivp)

Due to potential instability compared to the real valve physics_client.so, this is an optional build step.
Use -DUSE_KISAK_PHYSICS=1 in your cmake build line to enable

Kisak physics uses a custom name kisakvphysics_client.so as to not overwrite the original file if you choose to use it.

Issues

  • ragdolls are fubar'd. I think this is because of axis mismatch? fixed: was due to improper gravity axis and compiler optimization settings. The exact files causing them to spasm on -O2 need to be looked at closer.
  • msg spam from some hacks
  • Some maps with built-in physics objects will cause invalid origin from vphysics! spam and lag the game considerably (ex: train/militia). Previously these maps would just crash on load, but commit 62eb192 has enabled them to at least load.
  • Multiple files from ivp_physics will just break when compiling with -O2 or any optimizations, this should be investigated more.

Notes

  • Grenades seem ok, but should do more testing. Grenades are custom no matter which physics lib
  • Lots of hacking was done to get this to work, search the code for "lwss" or even "lwss hack" if you want to hunt bugs.
  • One major thing I didn't re-implement was the physics prediction, I am not sure of the consequences of leaving this out. It could be physics-state desync from other clients or perhaps some extreme jerking. This won't show up until there is some network latency I imagine.
  • If we let servers have a choice, then the client should sync to that choice otherwise there will 99% be de-sync between clients with different physics lib.
@r3muxd
Copy link

r3muxd commented Dec 21, 2020

there is an open-source vphysics that was used in gmod for some time at https://github.com/DrChat/Gmod-vphysics

@LWSS
Copy link
Contributor Author

LWSS commented Dec 21, 2020

there is an open-source vphysics that was used in gmod for some time at https://github.com/DrChat/Gmod-vphysics

Neat, thanks I'll check this out

@LWSS LWSS changed the title Physics Physics(Kisak Physics) Jan 21, 2021
@LWSS
Copy link
Contributor Author

LWSS commented Jan 21, 2021

@r3muxd
Hey, we now have working bullet physics in the game

tupoy-ya pushed a commit to tupoy-ya/Kisak-Strike that referenced this issue Nov 27, 2023
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