fix missing imports and wrong type declaration
This commit is contained in:
parent
0977680004
commit
4941ec1904
|
@ -2,6 +2,10 @@ module Classes.Physics.Collidible where
|
||||||
|
|
||||||
import Linear
|
import Linear
|
||||||
|
|
||||||
|
-- internal imports
|
||||||
|
|
||||||
|
import Classes.Physics.Mass
|
||||||
|
|
||||||
-- | Typeclass for implementing collision results on objects.
|
-- | Typeclass for implementing collision results on objects.
|
||||||
class Mass c => Collidible c where
|
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.
|
-- | This Function is called for every collision for both colliding objects.
|
||||||
collide
|
collide
|
||||||
-> c -- ^ Original object
|
:: c -- ^ Original object
|
||||||
-> c -- ^ Collision partner
|
-> c -- ^ Collision partner
|
||||||
-> c -- ^ Updated original object
|
-> c -- ^ Updated original object
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
module Classes.Physics.Mass where
|
module Classes.Physics.Mass where
|
||||||
|
|
||||||
|
import Linear
|
||||||
|
|
||||||
-- | This typeclass is a centerpiece of the physics implementation and is used
|
-- | This typeclass is a centerpiece of the physics implementation and is used
|
||||||
-- to implement the basic mass properties of a (very simplified) physical body.
|
-- to implement the basic mass properties of a (very simplified) physical body.
|
||||||
class Mass m where
|
class Mass m where
|
||||||
|
|
Loading…
Reference in New Issue