Safe Haskell | None |
---|---|
Language | Haskell2010 |
This is an example of how to use this library to create and simulate a world. It's more documentation than an API I actually expect people to use.
Documentation
type EngineCache s = MVector s (ObjectFeatureKey Int, ContactResult Lagrangian) Source #
type EngineState a s = (World' a, EngineCache s, [External]) Source #
data EngineConfig Source #
type EngineST a s = ReaderT EngineConfig (StateT (EngineState a s) (ST s)) Source #
initEngine :: Scene (Engine a) -> ST s (EngineState a s) Source #
wrapUpdater :: Vector (ContactResult Constraint) -> (EngineCache s -> Vector (ContactResult Constraint) -> World' a -> ST s (World' a)) -> EngineST a s () Source #
wrapInitializer :: (EngineCache s -> World' a -> ST s (EngineCache s, Vector (ContactResult Constraint), World' a)) -> EngineST a s (Vector (ContactResult Constraint)) Source #
updateWorld :: EngineST a s (World' a) Source #
module Physics.Engine