Writing a Character Motor

Hello, I’ve been trying to write a script to control a hovering tank that I made in Blender, which I then brought into Unity.

I’ve spent a long time doing tutorials and reading the scripting reference section. I’m just having a tough time getting any results because I’m new to writing code.

I have the Unity Remote app for my Iphone and I want to have a script that makes my tank in Unity tilt from side to side and forward and back, as I tilt the phone.

I’m confused about the actual function of GetAccelerationEvent, and I don’t know how to access the transform of my character collider.

Unity is telling me the semi colons are in the wrong place and I realize that there is no linkage to the transform of an object so this little thing I’ve written is doing me no good.

var throttle : Transform;

function Update () {
Input.GetAccelerationEvent(throttle);
}

I appreciate any help, thank you

Use codes in tags.

[code]
// codes
[/code]