Ejemplo n.º 1
0
 public PhysicEntity(float mass, PhysicType type)
 {
     this.mass         = mass;
     this.type         = type;
     this.currPosition = Vector2.zero;
     this.prevPosition = this.currPosition;
     this.currVelocity = Vector2.zero;
 }
Ejemplo n.º 2
0
 public PhysicTransform(Transform _pTransform, float _mass, PhysicType type) : base(_mass, type)
 {
     this.pTransform   = _pTransform;
     this.currPosition = this.pTransform.position;
     this.prevPosition = this.currPosition;
 }