Contents
概要
MagicaManagerはMagicaClothのシステムクラスで1つだけ存在します。
MagicaManagerへの設定はシステム全体に影響を及ぼします。
Managerには次のようにアクセス可能です。
{
MagicaManager.SetGlobalTimeScale(magicaGlobalTimeScale);
}
Properties
OnPreSimulation
/// <summary>
/// シミュレーション開始前イベント
/// Pre-simulation event.
/// </summary>
public static Action OnPreSimulation;
OnPostSimulation
/// <summary>
/// シミュレーション完了後イベント
/// Post-simulation event.
/// </summary>
public static Action OnPostSimulation;
Methods
SetGlobalTimeScale
/// <summary>
/// グローバルタイムスケールを変更します
/// Change the global time scale.
/// </summary>
/// <param name="timeScale">0.0-1.0</param>
public static void SetGlobalTimeScale(float timeScale)
GetGlobalTimeScale
/// <summary>
/// グローバルタイムスケールを取得します
/// Get the global time scale.
/// </summary>
/// <returns></returns>
public static float GetGlobalTimeScale()