Skip to content

Commit

Permalink
Create a template
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiefl committed Jul 9, 2023
1 parent 7ded132 commit af50703
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pooltool/physics/resolve/ball_cushion/unrealistic/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
"""An unrealistic ball-cushion model"""

from typing import Tuple

from pooltool.objects.ball.datatypes import Ball
from pooltool.objects.table.components import LinearCushionSegment
from pooltool.physics.resolve.ball_cushion.core import CoreBallLCushionCollision


class UnrealisticLinear(CoreBallLCushionCollision):
def solve(
self, ball: Ball, cushion: LinearCushionSegment
) -> Tuple[Ball, LinearCushionSegment]:
return ball, cushion

0 comments on commit af50703

Please sign in to comment.