Need Force!!!

I need to apply force, but id doesnt woek::
alt text

alt text

are you applying the force in FixedUpdate() istead of Update() ?

This is first car SCRIPT: `var Tepalai : ParticleEmitter;
var DashStylius : GUISkin;
var IjunktaLempa : Texture2D;
var IsjinktaLempa : Texture2D;
var IjunktaVirdulis : Texture2D;
var IsjunktaVirdulis : Texture2D;
var IjunktaBenzas : Texture2D;
var IsjinktaBenzas : Texture2D;
var IjunktaTemp : Texture2D;
var IsjunktaTemp : Texture2D;

var KamkeH : Camera;
var KamkeR : Camera;
var Grietis : float = 0.5;

var Ziezirba : GameObject;

private var yraBenzo : boolean = true;
var Stopped : boolean;
var Mat : Material;
var Gyfka : int = 30;
var Benzas : int;
var GoodTag : String;
var BadTag : String;
var BenzinoTag : String = “Benz”;
/////////////////////////////////////////////
var Ugnis : Transform; /////
var Ugnis2 : Transform; /////
var Dumai : Transform; /////
var Groteles : Transform; /////
var RatasFR : Transform; /////
var RatasFL : Transform; /////
var RatasRR : Transform; /////
var RatasRL : Transform; /////
var Sprogimas : GameObject; /////
var PoposKiekis : int; /////
var GeroKiekis : int; /////
var RaizoKiekis : int = 1; /////
var KiekIkiMeniu : int = 5; /////
private var Activas : boolean = false; /////
var BenzoGrietis : int = 3; /////
/////////////////////////////////////////////
//+++++++++++++++++++++++++++++
var Stogas : Transform; //+
var Remas2 : Transform; //+
var Remas : Transform; //+
var Kapotas : Transform; //+
var Bagaz : Transform; //+
var Lentele : Transform; //+
var Str : Transform; //+
var Str2 : Transform; //+
var Str3 : Transform; //+
var Str4 : Transform; //+
var Dugnas : Transform; //+
var Galas : Transform; //+
var Priekis : Transform; //+
//+++++++++++++++++++++++++++++
//-----------------------------
var Iltis1 : Transform; //-
var Iltis2 : Transform; //-
var Lempa1 : Transform; //-
var Lempa2 : Transform; //-
var Buferis : Transform; //-
var Riebulka : Transform; //-
//-----------------------------

function OnCollisionEnter(other : Collision){
///+++++++++++ZIEZIRBOS++++++++++++++++++++++***************//
var contact1 : ContactPoint = other.contacts[0]; ////
var rot1 : Quaternion = Quaternion.FromToRotation(Vector3.up, contact1.normal); ////
var pos1 : Vector3 = contact1.point; ////
Instantiate(Ziezirba, pos1, rot1); ////
////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////
if (other.collider.gameObject.tag == GoodTag){
Gyfka += GeroKiekis;
}
///////////////////////////////////////////////
if (other.relativeVelocity.magnitude < 1){
Gyfka -= RaizoKiekis;
}
/////////////////////////////////////////////
if (other.collider.gameObject.tag == BadTag)
{
Gyfka -= PoposKiekis;
}
////////////////////////////////////////////
if (other.collider.gameObject.tag == BenzinoTag){
Benzas += 10;
}
///////////////////////////////////////////
}

function OnGUI(){
GUI.Box(new Rect (10,Screen.height - 200,200,20), “Riebulkos Mašinos Sveikata:” + Gyfka);
GUI.Box(new Rect (10,Screen.height - 180,200,20), “Riebulkos Mašinos Benzinas:” + Benzas);
GUI.Box(new Rect (10,Screen.height - 150,300,30), “Call Riebulka: R”);
GUI.Box(new Rect (10,Screen.height - 120,300,30), "Stopped = " + Stopped);
GUI.skin = DashStylius;
if(Gyfka >= 5){
GUI.Box(new Rect (410,Screen.height - 110,100,100), IjunktaTemp);
}
if(Gyfka >= 20){
GUI.Box(new Rect (410,Screen.height - 110,100,100), IsjunktaTemp);
}
if(Gyfka < 20){
GUI.Box(new Rect (410,Screen.height - 110,100,100), IjunktaTemp);
}
if(Benzas >= 7){
GUI.Box(new Rect (520,Screen.height - 110,100,100), IsjinktaBenzas);
}
if(Benzas < 7){
GUI.Box(new Rect (520,Screen.height - 110,100,100), IjunktaBenzas);
}
if(Gyfka >= 5){
GUI.Box(new Rect (300,Screen.height - 110,100,100), IsjunktaVirdulis);
}
if(Gyfka < 5){
GUI.Box(new Rect (300,Screen.height - 110,100,100), IjunktaVirdulis);
}
GUI.skin = null;
if(Gyfka <= 0){
if(GUI.Button(Rect(100,100,Screen.width - 200,Screen.height - 200), “MENU?”)){
Screen.showCursor = true;
Application.LoadLevel(0);
}
}
}

function Start(){
Stopped = false;
InvokeRepeating (“Benzinas”, 0, BenzoGrietis);
}

function Benzinas(){
Benzas -= 1;
if(!yraBenzo){
CancelInvoke(“Benzinas”);
}
}

function Update(){
if(Input.GetKeyDown(KeyCode.R)){
Stopped = !Stopped;
}

if(Stopped){
RatasFR.hingeJoint.useMotor = false;
RatasFL.hingeJoint.useMotor = false;
RatasRR.hingeJoint.useMotor = false;
RatasRL.hingeJoint.useMotor = false;
}

if(!Stopped){
RatasFR.hingeJoint.useMotor = true;
RatasFL.hingeJoint.useMotor = true;
RatasRR.hingeJoint.useMotor = true;
RatasRL.hingeJoint.useMotor = true;
}
if(Gyfka <=0 && !Activas){
Activas = true;
Instantiate(Sprogimas, Groteles.transform.position, Quaternion.identity);
Time.timeScale = Grietis;
KamkeR.GetComponent("GrayscaleEffect").enabled = true;
KamkeH.GetComponent("GrayscaleEffect").enabled = true;
//***********************
Destroy(RatasFR.hingeJoint);
Destroy(RatasFL.hingeJoint);
Destroy(RatasRR.hingeJoint);
Destroy(RatasRL.hingeJoint);
///**************************
RatasFR.rigidbody.freezeRotation = false;
RatasFL.rigidbody.freezeRotation = false;
RatasRR.rigidbody.freezeRotation = false;
RatasRL.rigidbody.freezeRotation = false;
////////////////////////////////////
RatasFR.rigidbody.constraints = RigidbodyConstraints.None;
RatasFL.rigidbody.constraints = RigidbodyConstraints.None;
RatasRR.rigidbody.constraints = RigidbodyConstraints.None;
RatasRL.rigidbody.constraints = RigidbodyConstraints.None;
/////////////////////////////////
Stogas.renderer.material = Mat;
Remas.renderer.material = Mat;
Remas2.renderer.material = Mat;
Bagaz.renderer.material = Mat;
Str.renderer.material = Mat;
Str2.renderer.material = Mat;
Str3.renderer.material = Mat;
Str4.renderer.material = Mat;
Kapotas.renderer.material = Mat;
Lentele.renderer.material = Mat;
Priekis.renderer.material = Mat;
Galas.renderer.material = Mat;
Dugnas.renderer.material = Mat;
//*********************//
Stogas.gameObject.AddComponent(Rigidbody);
Remas2.gameObject.AddComponent(Rigidbody);
Remas.gameObject.AddComponent(Rigidbody);
Bagaz.gameObject.AddComponent(Rigidbody);
Str.gameObject.AddComponent(Rigidbody);
Str2.gameObject.AddComponent(Rigidbody);
Str3.gameObject.AddComponent(Rigidbody);
Str4.gameObject.AddComponent(Rigidbody);
Lentele.gameObject.AddComponent(Rigidbody);
Priekis.gameObject.AddComponent(Rigidbody);
Galas.gameObject.AddComponent(Rigidbody);
Dugnas.gameObject.AddComponent(Rigidbody);
Lempa1.gameObject.AddComponent(Rigidbody);
Lempa2.gameObject.AddComponent(Rigidbody);
Iltis1.gameObject.AddComponent(Rigidbody);
Iltis2.gameObject.AddComponent(Rigidbody);
Buferis.gameObject.AddComponent(Rigidbody);
Riebulka.gameObject.AddComponent(Rigidbody);
Groteles.gameObject.AddComponent(Rigidbody);

///////////*******************
}
if(Gyfka < 5){
Tepalai.emit = true;
}

if(Gyfka >= 5){
Tepalai.emit = false;
}
//////////////////////////////
if(Benzas <= 0){
yraBenzo = false;
RatasFR.hingeJoint.useMotor = false;
RatasFL.hingeJoint.useMotor = false;
RatasRR.hingeJoint.useMotor = false;
RatasRL.hingeJoint.useMotor = false;
}
/////////////////////////////////////////////
if(Gyfka <=25){
Dumai.particleEmitter.emit = true;
}
////////////////////////////////////////////
if(Gyfka <=11){
Ugnis.particleEmitter.emit = true;
}
////////////////////////////////////////////
if(Gyfka >=26){
Dumai.particleEmitter.emit = false;
}
////////////////////////////////////////////
if(Gyfka >=10){
Ugnis.particleEmitter.emit = false;
}
///////////////////////////////////////////

}`

THIS IS BUMPER"S Script which don’t work: var Spaudim = 105; function OnCollisionEnter(collision : Collision) { collision.rigidbody.AddForce (Spaudim, Spaudim, Spaudim, ForceMode.Acceleration); Debug.Log("Bam!!"); }

This is Enemy scritp : `var yraBenzo : boolean = true;
var Ziezirba : GameObject;
var BUMBOSSPROGA : float = 25;
var Mat : Material;
var Gyfka : int = 30;
var Benzas : int;
var GoodTag : String;
var BadTag : String;
var BenzinoTag : String = “Benz”;
var Ugnis : Transform;
var Ugnis2 : Transform;
var Dumai : Transform;
var Groteles : Transform;
var RatasFR : Transform;
var RatasFL : Transform;
var RatasRR : Transform;
var RatasRL : Transform;
var Sprogimas : GameObject;
var PoposKiekis : int;
var GeroKiekis : int;
var RaizoKiekis : int = 1;
var KiekIkiMeniu : int;
private var Activas : boolean = false;
var BenzoGrietis : int = 3;
///////////////////
var Remas2 : Transform;
var Remas : Transform;
var Kapotas : Transform;
var Bagaz : Transform;
var Dugnas : Transform;
var Galas : Transform;
var Priekis : Transform;
//++++++++++++++//
var Iltis1 : Transform;
var Iltis2 : Transform;
var Lempa1 : Transform;
var Lempa2 : Transform;
var Buferis : Transform;
var Riebulka : Transform;
//-------------//
/////////////////////////

function OnCollisionEnter(other : Collision){
Debug.Log(“Test”);
var contact1 : ContactPoint = other.contacts[0];
var rot1 : Quaternion = Quaternion.FromToRotation(Vector3.up, contact1.normal);
var pos1 : Vector3 = contact1.point;
Instantiate(Ziezirba, pos1, rot1);
///////////////////////////////////////////////////////
if (other.collider.gameObject.tag == GoodTag){
Gyfka += GeroKiekis;
}

if (other.relativeVelocity.magnitude < 1){
Gyfka -= RaizoKiekis;
Benzas -= RaizoKiekis;
}

/////////////////////////////////////////////
if (other.collider.gameObject.tag == BadTag)
{
Gyfka -= PoposKiekis;
} 
/////////////////////////////////////////////
if (other.collider.gameObject.tag == BenzinoTag){
Benzas += 15;
} 
///////////////////////////////////////

}

function Start(){
InvokeRepeating (“Benzinas”, 0, BenzoGrietis);
}

function Benzinas(){
Benzas -= 1;
if(!yraBenzo){
CancelInvoke(“Benzinas”);
}
}

function Update(){
if(Gyfka <=0 && !Activas){
Activas = true;
Instantiate(Sprogimas, Groteles.transform.position, Quaternion.identity);
//***********************
Destroy(RatasFR.hingeJoint);
Destroy(RatasFL.hingeJoint);
Destroy(RatasRR.hingeJoint);
Destroy(RatasRL.hingeJoint);
///**************************
RatasFR.rigidbody.freezeRotation = false;
RatasFL.rigidbody.freezeRotation = false;
RatasRR.rigidbody.freezeRotation = false;
RatasRL.rigidbody.freezeRotation = false;
////////////////////////////////////
RatasFR.rigidbody.constraints = RigidbodyConstraints.None;
RatasFL.rigidbody.constraints = RigidbodyConstraints.None;
RatasRR.rigidbody.constraints = RigidbodyConstraints.None;
RatasRL.rigidbody.constraints = RigidbodyConstraints.None;
/////////////////////////////////
Remas.renderer.material = Mat;
Remas2.renderer.material = Mat;
Bagaz.renderer.material = Mat;
Kapotas.renderer.material = Mat;
Priekis.renderer.material = Mat;
Galas.renderer.material = Mat;
Dugnas.renderer.material = Mat;
////
Remas2.gameObject.AddComponent(Rigidbody);
Remas.gameObject.AddComponent(Rigidbody);
Bagaz.gameObject.AddComponent(Rigidbody);
Kapotas.gameObject.AddComponent(Rigidbody);
Priekis.gameObject.AddComponent(Rigidbody);
Galas.gameObject.AddComponent(Rigidbody);
Dugnas.gameObject.AddComponent(Rigidbody);
Lempa1.gameObject.AddComponent(Rigidbody);
Lempa2.gameObject.AddComponent(Rigidbody);
Iltis1.gameObject.AddComponent(Rigidbody);
Iltis2.gameObject.AddComponent(Rigidbody);
Buferis.gameObject.AddComponent(Rigidbody);
Riebulka.gameObject.AddComponent(Rigidbody);
///////////

Remas2.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Remas.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Bagaz.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Kapotas.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Priekis.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Galas.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Dugnas.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Lempa1.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Lempa2.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Iltis1.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Iltis2.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Buferis.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
Riebulka.rigidbody.AddForce(Vector3.up * BUMBOSSPROGA, ForceMode.Force);
////
************************
}

//////////////////////////////
if(Benzas <= 0){
Debug.Log("Nera");
yraBenzo = false;
RatasFR.hingeJoint.useMotor = false;
RatasFL.hingeJoint.useMotor = false;
RatasRR.hingeJoint.useMotor = false;
RatasRL.hingeJoint.useMotor = false;
}
//////////////////////////////
if(Benzas > 0){
Debug.Log("Yra");
RatasFR.hingeJoint.useMotor = true;
RatasFL.hingeJoint.useMotor = true;
RatasRR.hingeJoint.useMotor = true;
RatasRL.hingeJoint.useMotor = true;
}
    if(Gyfka <=25){
Dumai.particleEmitter.emit = true;
}
//////////////////////////////////////
if(Gyfka <=11){
Ugnis.particleEmitter.emit = true;
}
//////////////////////////////////////////////
if(Gyfka >=26){
Dumai.particleEmitter.emit = false;
}
////////////////////////////////////////////
if(Gyfka >=10){
Ugnis.particleEmitter.emit = false;
}
/////////////////////////////////////////////////////////////////////////////

}`

This is Helicopter control force script : `var Greitis : float;
var Helis : Transform;

function Update(){
if(Input.GetKey(KeyCode.D)){
Helis.transform.rigidbody.AddRelativeForce(Vector3.right * Greitis, ForceMode.Acceleration);
}
if(Input.GetKey(KeyCode.A)){
Helis.transform.rigidbody.AddRelativeForce(Vector3.left * Greitis, ForceMode.Acceleration);
}

if(Input.GetKey(KeyCode.W)){

Helis.transform.rigidbody.AddRelativeForce(Vector3.up * Greitis, ForceMode.Acceleration);
}
if(Input.GetKey(KeyCode.S)){
Helis.transform.rigidbody.AddRelativeForce(Vector3.down * Greitis, ForceMode.Acceleration);
}
}`

I know force needs rigidbody. But the bumper is Car’s Child. I need force on Collision to push enemies from road.