fix missing imports and wrong type declaration

This commit is contained in:
nek0 2020-12-27 05:30:57 +01:00
parent 0977680004
commit 4941ec1904
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,10 @@ module Classes.Physics.Collidible where
import Linear
-- internal imports
import Classes.Physics.Mass
-- | Typeclass for implementing collision results on objects.
class Mass c => Collidible c where
@ -14,6 +18,6 @@ class Mass c => Collidible c where
)
-- | This Function is called for every collision for both colliding objects.
collide
-> c -- ^ Original object
:: c -- ^ Original object
-> c -- ^ Collision partner
-> c -- ^ Updated original object

View File

@ -1,5 +1,7 @@
module Classes.Physics.Mass where
import Linear
-- | This typeclass is a centerpiece of the physics implementation and is used
-- to implement the basic mass properties of a (very simplified) physical body.
class Mass m where