Logo
公開メンバ関数 | 公開変数類 | プロパティ | 全メンバ一覧
Yukar.Engine.CameraManager クラス

カメラツールで作成したカメラを再生するクラス [詳解]

公開メンバ関数

bool isSkillCameraPlaying (bool strict)
スキルカメラが一定時間以上進んだかどうか [詳解]
void setCameraFromPathName (Catalog catalog, bool isBattle, Guid mapId, string name)
void setCameraFromGuid (Catalog catalog, Guid guId, bool isIntp=false, float intpTime=0f)
int getKeyFrameCount ()
void setKeyFrame (int index)
void playAnimation (float spd=1.0f)
void stopAnimation ()
void animationCameraMatrix (Catalog catalog, Common.Rom.Map map, SharpKmyMath.Vector3 heroPos, SharpKmyMath.Vector2 shake, float asp, float farclip, out SharpKmyMath.Matrix4 p, out SharpKmyMath.Matrix4 v, out SharpKmyMath.Vector3 _lookat, float playerAngY=0f, float ofsY=0f)
void convQuaternionToRotation (Microsoft.Xna.Framework.Quaternion quat, out Microsoft.Xna.Framework.Vector3 rot)
void convQuaternionToRotation (Microsoft.Xna.Framework.Quaternion quat, out SharpKmyMath.Vector3 rot)
void setWaitFunc (Func< bool > func)

公開変数類

Vector3 m_last_position = new Vector3()
Vector3 m_last_offset = new Vector3()
Vector3 m_last_light = new Vector3()
Vector3 m_last_dof = new Vector3()
Common.Rom.Camera.TargetType m_last_target = Common.Rom.Camera.TargetType.TARGET_PLAYER
Guid m_last_targetId = Guid.Empty
Vector3 m_last_targetPos = new Vector3()

プロパティ

Common.Rom.Camera ntpCamera = null [get, set]
bool isPlayAnim = false [get, set]
bool isWaitCameraPlaying [get]
float playSpeed = 1.0f [get, set]
float playFrame = 0.0f [get, set]
float totalElapsed = 0.0f [get, set]
Quaternion camQuat = new Quaternion() [get]
SharpKmyMath.Vector3 m_intp_campos = new SharpKmyMath.Vector3() [get, set]
SharpKmyMath.Vector3 m_intp_target = new SharpKmyMath.Vector3() [get, set]
SharpKmyMath.Vector3 m_view_angle = new SharpKmyMath.Vector3() [get, set]
float m_fovy [get, set]
float m_nearClip [get, set]
float m_distance [get, set]

詳解

カメラツールで作成したカメラを再生するクラス

メソッド詳解

animationCameraMatrix()

void Yukar.Engine.CameraManager.animationCameraMatrix ( Catalog catalog,
Common.Rom.Map map,
SharpKmyMath.Vector3 heroPos,
SharpKmyMath.Vector2 shake,
float asp,
float farclip,
out SharpKmyMath.Matrix4 p,
out SharpKmyMath.Matrix4 v,
out SharpKmyMath.Vector3 _lookat,
float playerAngY = 0f,
float ofsY = 0f
)

カレントカメラアニメーション処理と行列の生成

getKeyFrameCount()

int Yukar.Engine.CameraManager.getKeyFrameCount ( )

カレントカメラのキーフレーム数を取得

isSkillCameraPlaying()

bool Yukar.Engine.CameraManager.isSkillCameraPlaying ( bool strict )

スキルカメラが一定時間以上進んだかどうか

strict モードではスキルカメラが再生中でないとtrueを返さない スキルイベントでカメラが上書きされている可能性があるので、スキル使用フローではfalseで実行する

setCameraFromGuid()

void Yukar.Engine.CameraManager.setCameraFromGuid ( Catalog catalog,
Guid guId,
bool isIntp = false,
float intpTime = 0f
)

guIdでカメラセット

引数
catalog カタログ
guId guId
isIntp 以前の状態からカメラ補間するか?
intpTime 補間時間

setCameraFromPathName()

void Yukar.Engine.CameraManager.setCameraFromPathName ( Catalog catalog,
bool isBattle,
Guid mapId,
string name
)

カメラパスと名前でカメラセット

引数
catalog カタログ
isBattle バトルカメラから検索するかどうか
mapId カメラが格納されたマップのID
name カメラ名

このクラス詳解は次のファイルから抽出されました: