 
 
   setAnimation: (name) ->
-    @currentAnimation = @animations[name] or fail("#{@constructor.name}#setAnimation", "Couldn't find animation with name #{name}")
+    @currentAnimation = @animations[name] or fail("#{@class()}#setAnimation", "Couldn't find animation with name #{name}")
 
 
   clearAnimation: ->

  # TODO: DOCS
  #
  loadAnimations: ->
    animations = Kona.Animations["#{@group}:#{@constructor.name}"]
    return unless animations?

    for name, opts of animations

  #
  constructor: (opts={}) ->
    group    = opts.group || @constructor.group
    @group   = group or fail("#{@class()}#new", "entity must have a group")
    @scene   = opts.scene
    @solid   = if opts.solid?   then opts.solid   else true
    @gravity = if opts.gravity? then opts.gravity else true
