freezy / VisualPinball.Engine

:video_game: Visual Pinball Engine for Unity
https://docs.visualpinball.org
GNU General Public License v3.0
398 stars 62 forks source link

Feature: curve based dampeners2 #395

Closed Cupiii closed 2 years ago

Cupiii commented 2 years ago

CBD aka nFozzy rubber dampeners are ready for now.,. although they are not exactly nFozzys rubber dampeners. Beside the elasticity based effects, nFozzy also dampens the frictions based effects. That may be intentional, but it may also be only because he could not get "inbetween" these calculations. Anf from my research (and playtest (see below)) different curves for both effects seem to be beneficial for the "feel" of the game. I'm with RothbauerW in (private, for now) contact to discuss the differences. Also a book about contact physics is arriving at my place on tuesday. We may also open the discussion in the physics thread on discord.

What's great: nFozzy physics now can be set for every collider seperately. CBD on MWG are a must. I dont know if this is right, but I really think that different CBD on each material will set new standards to Virtual Pinball.

As said above: There is a new (experimental) feature beside nFozzy: friction over velocity. After a short playtest this feels really great. especially when you stop the ball with the flipper pressed and it rolls to the metal. Rotation looks much, much more natural now and feels great.

This is a first look, not meanted to be pulled now. If anybody has suggestions...

Cupiii commented 2 years ago

Oh, although I‘m wasting some memory with this (1kb per collider), i see no impact in FPS on my computer.

Cupiii commented 2 years ago

OK, ready to merge.

Cupiii commented 2 years ago

All resolved. Could be pulled now. It will destroy the V-Table, I will correct it tomorrow then.