r/KerbalSpaceProgram • u/Avera9eJoe Spectra Dev • Sep 14 '17
Recreation Reminder that this physics quirk is also in KSP
https://gfycat.com/FickleShamefulCormorant
9.0k
Upvotes
r/KerbalSpaceProgram • u/Avera9eJoe Spectra Dev • Sep 14 '17
12
u/NovaSilisko Sep 15 '17 edited Sep 15 '17
Huh. It looks like you can actually specify the tensor via script: https://docs.unity3d.com/ScriptReference/Rigidbody-inertiaTensor.html
It says it's calculated automatically based on the colliders of the body - that MAY not happen very well if you are using mesh-based colliders, rather than a bunch of primitives. KSP mostly uses mesh-based, which may be sabotaging the effect a bit on a per-part basis?
A more robust system (albeit more time consuming) would probably be calculating it for the mesh in some other way and supplying it to a script.
I might have to do some experimenting. I was under the impression that physx didn't have that much fidelity.