Add Simple Gravity to Simple CharacterController

The other questions in the forums are asking about adding some specific solution for gravity on a CharacterController. I just want basic fall to the ground gravity.

I am using just a simple CharacterController, no FPSController prefab. For what I’m building, I want just the absolute basic, no scripts or input connected CharacterController.

Using the basic CharacterController from the “Physics” dropdown, you get no gravity, so the Character Controller does not fall to the ground. I just need my CharacterController to fall to the ground, then respond to the undulations of the terrain as I invoke Move() to move it from waypoint to waypoint across the terrain.

I’m trying to implement this:

	void Update () {
		Vector3 moveVec = transform.position;
		moveVec.y = -(1.1f * gravityMod);
		controller.Move (moveVec * Time.deltaTime);
	}

transform.Translate(new Vector3(0f, gravityMod, 0f), Space.World);