Пример #1
0
        private void HitSparks(BEPUutilities.Vector3 position)
        {
            Actor sparks = GameResources.ActorManager.SpawnTemplate("Sparks");
            TransformComponent sparksXForm = sparks.GetComponent <TransformComponent>(ActorComponent.ComponentType.Transform);

            sparksXForm.Translation = BepuConverter.Convert(position);
            Sparks sparksBehavior = sparks.GetBehavior <Sparks>();

            sparksBehavior.Emit();
        }
Пример #2
0
        private void BashDust(BEPUutilities.Vector3 position)
        {
            Actor dust = GameResources.ActorManager.SpawnTemplate("Dust");
            TransformComponent dustXForm = dust.GetComponent <TransformComponent>(ActorComponent.ComponentType.Transform);

            dustXForm.Translation = BepuConverter.Convert(position);

            Sparks sparksBehavior = dust.GetBehavior <Sparks>();

            sparksBehavior.Emit();
        }