AquaSphereMini.Shrimp.Update3DModel C# (CSharp) Method

Update3DModel() private method

This function will update the model with position and rotation by speed and direction.
private Update3DModel ( ) : void
return void
	private void Update3DModel()
	{
		//move ahead by speed
		transform.Translate(Vector3.forward * Time.deltaTime * speed);

		//rotate to direction
		transform.Rotate(Vector3.up * Time.deltaTime * turningRate * direction);
	}
/*