|
|
|
|
|
|
} |
|
|
|
|
|
|
|
m_AgentRb.AddForce(new Vector3(moveX * 5f, upward * 10f, 0f), ForceMode.VelocityChange); |
|
|
|
//m_AgentRb.AddForce(new Vector3(moveX * 20f, upward * 10f, 0f), ForceMode.VelocityChange);
|
|
|
|
Quaternion deltaRotation = Quaternion.Euler(zAxis * rotateZ * .5f); |
|
|
|
Quaternion deltaRotation = Quaternion.Euler(zAxis * rotateZ);// * .5f);
|
|
|
|
m_AgentRb.MoveRotation(m_AgentRb.rotation * deltaRotation); |
|
|
|
//gameObject.transform.Rotate(0f, 0f, rotateZ);
|
|
|
|
|
|
|
|