/// <summary> /// Initializes a new instance of the <see cref="RenderableWorldModel"/> class. /// </summary> public RenderableWorldModel(WMO inModel, PackageGroup inPackageGroup) { this.Model = inModel; this.ModelPackageGroup = inPackageGroup; this.ActorTransform = new Transform ( new Vector3(0.0f, 0.0f, 0.0f), Quaternion.FromAxisAngle(Vector3.UnitX, MathHelper.Pi), new Vector3(1.0f, 1.0f, 1.0f) ); this.IsInitialized = false; Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="RenderableWorldModel"/> class. /// </summary> /// <param name="inModel">The model to render.</param> /// <param name="inPackageGroup">The package group the model belongs to.</param> /// <param name="inVersion">The game version of the package group.</param> public RenderableWorldModel(WMO inModel, PackageGroup inPackageGroup, WarcraftVersion inVersion) { this.Model = inModel; this.ModelPackageGroup = inPackageGroup; this.DatabaseProvider = new ClientDatabaseProvider(inVersion, this.ModelPackageGroup); this.ActorTransform = new Transform ( new Vector3(0.0f, 0.0f, 0.0f), Quaternion.FromAxisAngle(Vector3.UnitX, MathHelper.Pi), new Vector3(1.0f, 1.0f, 1.0f) ); this.IsInitialized = false; Initialize(); }