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

Field generator tends to break the physics engine when given huge values #78

Open
thegrb93 opened this issue Aug 16, 2019 · 2 comments
Open
Labels

Comments

@thegrb93
Copy link
Contributor

thegrb93 commented Aug 16, 2019

Also it's hook.Call spams the shit out of my server logs.

@thegrb93 thegrb93 added the bug label Aug 16, 2019
@EdoTM
Copy link
Contributor

EdoTM commented Apr 26, 2022

Is this bug still there? I tried to reproduce it and nothing went wrong. Of course something went wrong eventually, but I had to put values like 1000000000000000000000000000000000000000 (that is, 10^30) into Multiplier to make it stop working. At that point, the console shows

Crazy origin, angles, velocity, angular velocity on entity [68][prop_physics]
	Origin:           [-nan(ind), -nan(ind), nan]
	Angles:           [-nan(ind), nan, 180.000000]
	Velocity:         [-nan(ind), -nan(ind), nan]
	Angular Velocity: [-nan(ind), -nan(ind), nan]
Defusing!
Removing!

And it removes the entity. But still, even with values like 10^291 it works fine.

Footnotes

  1. These values I am referring to, are the values that I write in a constant value. When using the debugging tool, it gives different numbers (like
    image, but it's still pretty close to the value written in the menu)

@thegrb93
Copy link
Contributor Author

Most likely. It should have its forces clamped to something like 1e12 though.

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

No branches or pull requests

2 participants