- Home /
Question by
Kk1496 · May 28, 2013 at 08:00 AM ·
rigidbody.addforce
Unity3dstudent Module B08 script
I entered the code exactly and i still get this error.
Code:
#pragma strict
var power : float = 500.0;
function Start () {
rigidbody.AddForce(Vector3(0,0, power));
}
error Assets/Assets/Scripts/MovableCube.js(3,18): UCE0001: ';' expected. Insert a semicolon at the end.
Comment
Answer by mehrdada · May 28, 2013 at 09:00 AM
There isn't any problem with this code. I copied and pasted and gave no error. You might created a C# file instead of JavaScript file , or you should copy and paste your assets folder in your project to a new project.
Your answer
Follow this Question
Related Questions
How do I add force to the direction a game object is facing? 2 Answers
Pushing Object OnCollisionStay 1 Answer
Rigidbody2D.AddForce can't change X velocity 1 Answer
How to set realistic AddForce speed values for walking/running 2 Answers
When Movement speed Change once it never change again 1 Answer