freezy / VisualPinball.Engine

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

Debug shot component #454

Open syllebra opened 1 year ago

syllebra commented 1 year ago

This PR concern the new tool component that I ported from UP2: the debugshot component.

It complement the BallMoverComponent to create a shot from a mouse click+drag+release which takes the nearest ball, destroy it, create a new one and send it in the given direction with force proportionnal to the segment length.

Hitting "Space" can reshot the last entered shot without using the mouse, and holding "control" when releasing mouse will create a new ball instead of deleting the closest one...

freezy commented 1 year ago

https://user-images.githubusercontent.com/70426/228356729-c371fb04-9dc8-428b-8804-5010a28098f2.mp4

Sweet!