protected virtual void ResetCamera() { if (MainActor != null) { distance = MainActor.GetBoundingRadius() * 1.25f; zoomdistance = distance * 0.1f; yaw = 0; pitch = 0; VP.SetCameraYawPitchDistance(yaw, pitch, distance); } }
protected virtual void SpawnEntities() { if (meshname != null) { if (meshname != "") { MainActor = World.CreateActor("Model"); if (MainActor != null) { MainActor.SetMesh(GetTrueFileName(meshname)); distance = MainActor.GetBoundingRadius() * 1.25f; zoomdistance = distance * 0.1f; VP.SetCameraDistance(distance); } } } }