Exemplo n.º 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);
 }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 public void AddObject(Model[] models, Vector3 position, Color color,
                       ReflectanceFactors reflectanceFactors = null, RotationInfo rotationInfo = null)
 {
     this.AddObject(new SceneActor(models, position, color, reflectanceFactors, rotationInfo));
 }