Gregory Igehy

Dancing at hemisphere coordinate

Notes of dcraw

Notes of Unity

Graphics

Download

Camera

  • Game Programming Gems4 Camera
    • 4.1 Third-Person Camera Navigation

Mechanim


Notes of script programming in Unity

向きをローカル座標系からワールド座標系に変換

Vector3 world_direction = transform.TransformDirection( local_direction );

リニア補間

transform.position = Vector3.Lerp( transform.position, target.transform.position, Time.deltaTime * speed );

球面補間 (方向として補間)

Quaternion

Quaternion target_rot = Quaternion.LookRotation( world_dir );
transform.rotation    = Quaternion.RotateTowards( transform.rotation, target_rot, rotation_speeed * Time.deltaTime );