Help With Charchter Controller or Rigidbody . Please!

How can i make an object always go forward like

rigidbody.velocity = Vector3(0,0,10);

But with charachter controller? I used to do it with the rigidbody but sudenly it shoewd me this error

Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!

So if you dont know how to help me with the charachter controller can you help me get rid of this error?

You should be calling CharacterController.Move(Vector3 movement), instead of directly applying forces, velocities, etc.

CharacterControllers are not driven by the same physics behavior as rigidbodies, and thus will behave differently.

I think you can do this with a rigidbody:

var moveSpeed = 5.0;

transform.Translate(Vector3.forward * moveSpeed *Time.deltaTime);

Easy and simple this should make the "object" move forward at all times!