Simplify doorMechanism (involves hack)
This commit is contained in:
@@ -125,6 +125,10 @@ mvPointToward !ep !p
|
||||
| dist p ep < 1 = ep
|
||||
| otherwise = p +.+ normalizeV (ep -.- p)
|
||||
|
||||
vecBetweenSpeed :: Float -> Point2 -> Point2 -> Point2
|
||||
vecBetweenSpeed s sp ep
|
||||
| dist sp ep < s = ep -.- sp
|
||||
| otherwise = s *.* normalizeV (ep -.- sp)
|
||||
|
||||
sigmoid :: Floating a => a -> a
|
||||
sigmoid x = x/sqrt(1+x^(2::Int))
|
||||
|
||||
Reference in New Issue
Block a user