3 PluginDeveloper m_ModuleDeveloper;
10 if( FreeDebugCamera.GetInstance().IsActive() )
20 m_Ruler =
ItemBase.Cast(
GetGame().CreateObject(
"DoorTestCamera", FreeDebugCamera.GetInstance().GetPosition(),
false,
false) );
23 override void OnUpdate(
float delta_time)
26 if(!FreeDebugCamera.GetInstance().IsActive())
return;
28 vector cam_pos = FreeDebugCamera.GetInstance().GetPosition();
29 vector ruler_pos = m_Ruler.GetPosition();
30 vector camera_dir = FreeDebugCamera.GetInstance().GetDirection();
31 camera_dir.Normalize();
32 m_Ruler.SetPosition(FreeDebugCamera.GetInstance().GetPosition() + ( camera_dir * 2) );
33 m_Ruler.SetAngles(FreeDebugCamera.GetInstance().GetAngles());