bepu / bepuphysics2

Pure C# 3D real time physics simulation library, now with a higher version number.
Apache License 2.0
2.35k stars 272 forks source link

Dzhanibekov effect AKA Tennis effect #79

Closed vpenades closed 5 years ago

vpenades commented 5 years ago

Hi!

For some years, I know about the Dzhanibekov effect, explained here.

Given most modern engines implement advanced dynamics, with inertia tensors, etc, I was wondering if such an effect is possible to achieve in bepuPhysics.

This question is purely just for fun, not a feature requirement; in fact given the counterintuitive nature of the effect it could actually harm a game simulation.... but nonetheless, it's interesting if the point is to showcase the accuracy of the dynamics engine.

vpenades commented 5 years ago

Ah, I've checked and it's already supported here: https://github.com/bepu/bepuphysics2/blob/master/BepuPhysics/PoseIntegrator.cs#L42

Cool!