private void UpdateCharge(ChargedObject otherChargeObject) { var newCharge = (Charge + otherChargeObject.Charge) / 2; Charge = newCharge; otherChargeObject.Charge = newCharge; }
public void AddNewChargedObject(ChargedObject obj) { physicsObjects.Add(obj); }
private void ResetForces(ChargedObject self) { self.CoulombForce = Vector3.zero; self.LorentzForce = Vector3.zero; }
void Awake() { render = GetComponent <Renderer>(); chargedObject = GetComponent <ChargedObject>(); }