packages feed

Hipmunk 5.2.0 → 5.2.0.1

raw patch · 6 files changed

+18/−9 lines, 6 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Physics.Hipmunk.Callbacks: instance (NotSeparate t) => NotSeparate (PostStep t)
+ Physics.Hipmunk.Callbacks: instance NotSeparate t => NotSeparate (PostStep t)
- Physics.Hipmunk.Callbacks: currentSpaceAdd :: (Entity a) => a -> Callback (PostStep t) ()
+ Physics.Hipmunk.Callbacks: currentSpaceAdd :: Entity a => a -> Callback (PostStep t) ()
- Physics.Hipmunk.Callbacks: currentSpaceRemove :: (Entity a) => a -> Callback (PostStep t) ()
+ Physics.Hipmunk.Callbacks: currentSpaceRemove :: Entity a => a -> Callback (PostStep t) ()
- Physics.Hipmunk.Callbacks: normal :: (NotSeparate t) => Callback t Vector
+ Physics.Hipmunk.Callbacks: normal :: NotSeparate t => Callback t Vector
- Physics.Hipmunk.Callbacks: points :: (NotSeparate t) => Callback t [Position]
+ Physics.Hipmunk.Callbacks: points :: NotSeparate t => Callback t [Position]
- Physics.Hipmunk.Callbacks: totalImpulse :: (NotSeparate t) => Callback (PostStep t) Vector
+ Physics.Hipmunk.Callbacks: totalImpulse :: NotSeparate t => Callback (PostStep t) Vector
- Physics.Hipmunk.Callbacks: totalImpulseWithFriction :: (NotSeparate t) => Callback (PostStep t) Vector
+ Physics.Hipmunk.Callbacks: totalImpulseWithFriction :: NotSeparate t => Callback (PostStep t) Vector
- Physics.Hipmunk.Callbacks: unsafePostStep :: (Entity a) => Space -> a -> IO () -> IO ()
+ Physics.Hipmunk.Callbacks: unsafePostStep :: Entity a => Space -> a -> IO () -> IO ()
- Physics.Hipmunk.Constraint: newConstraint :: (ConstraintType a) => Body -> Body -> a -> IO (Constraint a)
+ Physics.Hipmunk.Constraint: newConstraint :: ConstraintType a => Body -> Body -> a -> IO (Constraint a)
- Physics.Hipmunk.Constraint: redefineC :: (ConstraintType a) => Constraint a -> a -> IO ()
+ Physics.Hipmunk.Constraint: redefineC :: ConstraintType a => Constraint a -> a -> IO ()
- Physics.Hipmunk.Space: spaceAdd :: (Entity a) => Space -> a -> IO ()
+ Physics.Hipmunk.Space: spaceAdd :: Entity a => Space -> a -> IO ()
- Physics.Hipmunk.Space: spaceRemove :: (Entity a) => Space -> a -> IO ()
+ Physics.Hipmunk.Space: spaceRemove :: Entity a => Space -> a -> IO ()
- Physics.Hipmunk.Unsafe: unsafeRememberC :: (ConstraintType a) => Constraint Unknown -> Constraint a
+ Physics.Hipmunk.Unsafe: unsafeRememberC :: ConstraintType a => Constraint Unknown -> Constraint a

Files

Hipmunk.cabal view
@@ -3,7 +3,7 @@ Tested-With:   GHC Category:      Physics, Game Name:          Hipmunk-Version:       5.2.0+Version:       5.2.0.1 Stability:     provisional License:       OtherLicense License-File:  LICENSE@@ -20,6 +20,10 @@       completely self-contained.  Please see       <http://hackage.haskell.org/package/HipmunkPlayground>       for a demonstration of this library.+      .+      New in version 5.2.0.1:+      .+      * Minor documentation fixes.       .       New in version 5.2.0:       .
NEWS view
@@ -1,3 +1,7 @@+Version 5.2.0.1+===============+ - Minor documentation fixes.+ Version 5.2.0 =============  - Use package StateVar for all variables.
Physics/Hipmunk/Constraint.hsc view
@@ -14,10 +14,10 @@  module Physics.Hipmunk.Constraint     (-- * Common interface+     Constraint,      newConstraint,      redefineC,      setBiasCoefC,-     Constraint,      -- ** Forgetting the phantom type      -- $phantom      Unknown,
Physics/Hipmunk/Internal.hsc view
@@ -131,7 +131,7 @@ -- | Type of generic constraint initializar. type ConstraintInit = ConstraintPtr -> BodyPtr -> BodyPtr -> IO () --- | Class implemented by all constraint types.+-- | Internal.  Class implemented by all constraint types. class ConstraintType a where   size  :: a -> Int   init_ :: a -> ConstraintInit@@ -140,7 +140,7 @@   -- | A space is where the simulation really occurs. You add---   bodies, shapes and constraints to a space and then step it+--   bodies, shapes and constraints to a space and then @step@ it --   to update it as whole. data Space = P !(ForeignPtr Space)                !(IORef Entities)   -- Active and static entities
Physics/Hipmunk/Shape.hsc view
@@ -202,11 +202,9 @@ --   calculated by multiplying the elasticity of both shapes. --   (default is zero) -----   /IMPORTANT:/ by default old-style elastic iterations are---   done when the space @step@s, which may result in a---   not-so-good simulation.  It may be a good idea to use---   @setElasticIterations@ with something greater than zero,---   maybe @10@.+--   By default old-style elastic iterations are done when the+--   space @step@s.  This used to result in a not-so-good+--   simulation, but now this is the recommended setting. type Elasticity = CpFloat elasticity :: Shape -> StateVar Elasticity elasticity (S shape _) = makeStateVar getter setter
Physics/Hipmunk/Space.hsc view
@@ -253,6 +253,9 @@ -- | The number of elastic iterations to use when solving --   constraints.  If @0@, then old-style elastic code is used. --   (default is 0).+--+--   This property is deprecated.  You should no longer need to+--   set any value other than the default. type ElasticIterations = CInt {-# DEPRECATED elasticIterations "Elastic iterations should no longer be needed" #-} elasticIterations :: Space -> StateVar ElasticIterations