     # Resolve the collision so as to prevent further handler.
     resolve : () ->
         @resolved = true
-    
+
     # Return true if the collision has been resolved.
     isResolved : () ->
         return @resolved

class wolf.Collision

    # Create a collision object.
    #
    # @param element1 {Object}
    # @param element2 {Object}
    constructor : (element1, element2) ->
        @element1 = element1
        @element2 = element2


    # Return the collision's contact normal vector, relative
    # to the first element in the collision.
    getContactNormal : () ->
        return @getRelativeVelocity().normalize()

    # Return the seperating velocity of the two elements.
    getSeperatingVelocity : () ->
        return @getRelativeVelocity().dotProduct(@getContactNormal())
