amerkoleci / JoltPhysicsSharp

JoltPhysics C# bindings
MIT License
238 stars 34 forks source link

Motor/Spring Methods #65

Closed bjornbytes closed 6 months ago

bjornbytes commented 6 months ago

This adds motor/spring methods for the constraints!

I went with a "plain old data" struct for motor/spring settings, similar to MassProperties.

amerkoleci commented 6 months ago

The windows build fails, can you fix it please? Then I'll gladly merge it.

Thanks

bjornbytes commented 6 months ago

Hm, not sure what to do about that warning. C4711 seems to be a notice for when a function gets inlined. Rather than try to force/disable inlining, it's probably best to disable the warning and let the compiler inline if it wants to? Strange that none of the other ToJolt methods ran into this.

amerkoleci commented 6 months ago

Thanks, will investigate why the warning gets triggered!