[Unity Reminder] Tips

OnMouseDown ()
When Parent Object has rigidbody on it, the OnMouseDown () function cannot be detected on the Child Object.

Quaternion.operator *
1) public static Quaternion operator *(Quaternion lhs, Quaternion rhs);
– Combines rotations lhs and rhs.
2) public static Vector3 operator *(Quaternion g_rotation, Vector3 g_point);
– Rotates the point g_point with g_rotation.

Texture “Wrap Mode” should be “Clamp”

[Unity Reminder] Collider

void OnCollisionEnter (Collision collision)
void OnCollisionStay (Collision collision)
void OnCollisionExit (Collision collision)

void OnTriggerEnter(Collider other)
void OnTriggerStay(Collider other)
void OnTriggerExit(Collider other)

void OnCollisionEnter2D (Collision2D coll)
void OnCollisionStay2D (Collision2D coll)
void OnCollisionExit2D (Collision2D coll)

void OnTriggerEnter2D (Collider2D other)
void OnTriggerStay2D (Collider2D other)
void OnTriggerExit2D (Collider2D other)