Fix space leak, start to unify door mechanisms
This commit is contained in:
+1
-1
@@ -460,7 +460,7 @@ mvPointTowardAtSpeed
|
||||
-> Point2 -- ^ End point.
|
||||
-> Point2 -- ^ Start point.
|
||||
-> Point2
|
||||
mvPointTowardAtSpeed speed !ep !p
|
||||
mvPointTowardAtSpeed !speed !ep !p
|
||||
| dist p ep < speed = ep
|
||||
| otherwise = p +.+ speed *.* normalizeV (ep -.- p)
|
||||
{- | given a target and a start point, shift toward the end point by 1.
|
||||
|
||||
Reference in New Issue
Block a user