     @velocity.x -= @velocity.x * 10.0 * delta
     @velocity.z -= @velocity.z * 10.0 * delta
 
-    # Set class properties based on class states
-    @setProps()
 
   handleMouseMove: (event) ->
     movementX = event["movementX"] or event["mozMovementX"] or event["webkitMovementX"] or 0

  moved: false
  sprinted: false

  constructor: (camera, @defaultPosition, @objects) ->
    @cameraPitch = camera
    @cameraYaw = camera

  getCamera: ->
    @cameraYaw

  getIntersect: (direction, far = Infinity) ->
    @rayCaster.set(@cameraYaw.position, direction)
    @rayCaster.far = far
    intersections = @rayCaster.intersectObjects(@objects)
    return if intersections.length > 0 then intersections[0] else false

  update: (delta, pointerLocked) ->
    # Set class properties based on class states
    @setProps()

    # Gravity
    @velocity.y -= 9.823 * 3.0 * delta

