public PhysicalObject(Texture2D texture, Vector2 origin, Vector2 pos, Vector2 hitbox, Vector2 velocity, float gravity) : base(texture, origin, pos) { this.hitbox = hitbox; this.velocity = velocity; touch_left = new InstaBool(); touch_right = new InstaBool(); touch_up = new InstaBool(); touch_down = new InstaBool(); surface_k = 0; this.gravity = gravity; }
public PhysicalObject(Texture2D texture, Vector2 origin, Vector2 pos, Vector2 hitbox, Vector2 velocity) : base(texture, origin, pos) { this.hitbox = hitbox; this.velocity = velocity; on_ladder = new bool[2] { false, false }; touch_left = new InstaBool(); touch_right = new InstaBool(); touch_up = new InstaBool(); touch_down = new InstaBool(); surface_k = 0; gravity = 0.02f; }