I want to get the tire meshes to the WheelCollider position. But there are a few errors. (Here I use a test script)
#pragma strict
var Wheel_1 : WheelCollider;
public function Update ()
{
Wheel1.GetWorldPose(out pos = Vector3,out quat = Quaternion);
}
Errors :
- Assets/MyAssets/Scripts/getworldpose.js(6,33):
BCE0044: expecting ), found 'pos'.
- Assets/MyAssets/Scripts/getworldpose.js(6,46):
BCE0043: Unexpected token: ,.
- Assets/MyAssets/Scripts/getworldpose.js(6,47):
UCE0001: ';' expected. Insert a
semicolon at the end.
- Assets/MyAssets/Scripts/getworldpose.js(6,50):
UCE0001: ';' expected. Insert a
semicolon at the end.
- Assets/MyAssets/Scripts/getworldpose.js(6,68):
BCE0043: Unexpected token: ).
What am I doing wrong ?
P.S.: Wheel1.GetWorldPose(out pos = Vector3,out quat = Quaternion) : void; also doesnt work.
Thanks.
↧