topical media & game development

talk show tell print

mobile-query-three-plugins-cannonjs-vendor-cannon.js-src-constraints-Constraint.js / js



  /*global CANNON:true */
  
  
@class CANNON.Constraint @brief Constraint base class
author: schteppe

  
  CANNON.Constraint = function(){
  
    
@property array equations @brief A number of CANNON.Equation's that belongs to this Constraint @memberof CANNON.Constraint

  
    this.equations = [];
    this.id = -1;
  };
  CANNON.Constraint.prototype.constructor = CANNON.Constraint;
  
  
@method update @memberof CANNON.Constraint @brief Updates the internal numbers, calculates the Jacobian etc.

  
  CANNON.Constraint.prototype.update = function(){
      throw "update() not implemented in this Constraint subclass!";
  };
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.