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