Skip to content

Commit 97c65b0

Browse files
committed
Doc: more changes
1 parent 5df0b05 commit 97c65b0

File tree

1 file changed

+6
-0
lines changed
  • VisualPinball.Unity/Documentation~/creators-guide/manual

1 file changed

+6
-0
lines changed

VisualPinball.Unity/Documentation~/creators-guide/manual/physics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ In Unity also looking from above onto the playfield:
4545
### Walls and Rubbers
4646

4747
Playfield elemets may have collider components, such as a rubber collider:
48+
4849
![Rubber Collider](rubber-collider-with-physics-material-asset.png)
50+
4951
In general, you can set
5052
- Elasticity,
5153
- Elasticity Falloff,
@@ -57,14 +59,18 @@ Targets, metal wire guides, primitives, ramps, rubbers also have the ability to
5759
You can create a new Physics Materials Asset in any Asset Folder in the project view by "right click, create, visual pinball, physics material".
5860

5961
A physics material asset has more options compared to the collider components themselves.
62+
6063
![Physics Material Asset](physics-material-asset-with-curves.png)
64+
6165
While you can set the options from above, you also can set curves for elasticity over velocity and friction over velocity.
6266
Many people think the the physics settings and scripts proposed by nFozzy come closest to real pinball.
6367

6468
While nFozzy wrote Visual Basic Scripts which optimized the Visual Pinball physics. While it would be possible to implement exactly the same behaviour as nFozzy proposed in his scripts, VPE deviates from the original implementation slightly:
6569

6670
nFozzy felt the elasticity and elasticity fall-off settings were somewhat limited in simulating the correct behaviors for these objects so he defined new curves for elasticity of objects for different ball speeds:
71+
6772
![nFozzy Rubber Dampening Curve](nfozzy-curve.png)
73+
6874
(original nFozzy curve for a rubber band)
6975

7076
What nFozzy did, was adjusting the XY-velocity of a ball from before collision to a new velocity after collision. According to different speeds, different factors were used for reduction of the velocity.

0 commit comments

Comments
 (0)