Beispiel #1
0
 public SceneActor(Model[] models, Vector3 position, Color color, ReflectanceFactors reflectanceFactors = null,
                   RotationInfo rotationInfo = null)
 {
     _meshesInfo = models.Select(model => new MeshesInfo(model, color)).ToArray();
     _SetParameters(position, color, reflectanceFactors, rotationInfo);
 }
Beispiel #2
0
        private void _SetParameters(Vector3 position, Color color, ReflectanceFactors reflectanceFactors, RotationInfo rotationInfo)
        {
            this.Color              = color;
            this.RotationInfo       = rotationInfo ?? new RotationInfo(0, 0, 0);
            this.ReflectanceFactors = reflectanceFactors ?? new ReflectanceFactors();

            this.Position = position;

            _currentFrame = 0;

            _UpdateObject();
        }
 public void AddObject(Model[] models, Vector3 position, Color color,
                       ReflectanceFactors reflectanceFactors = null, RotationInfo rotationInfo = null)
 {
     this.AddObject(new SceneActor(models, position, color, reflectanceFactors, rotationInfo));
 }