Add ultimate xr

This commit is contained in:
2024-08-06 21:58:35 +02:00
parent 864033bf10
commit 7165bacd9d
3952 changed files with 2162037 additions and 35 deletions

View File

@@ -0,0 +1,52 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UxrDeflectEventArgs.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using System;
using UnityEngine;
namespace UltimateXR.Mechanics.Weapons
{
/// <summary>
/// Projectile deflection event parameters.
/// </summary>
public class UxrDeflectEventArgs : EventArgs
{
#region Public Types & Data
/// <summary>
/// Gets the projectile source.
/// </summary>
public UxrProjectileSource ProjectileSource { get; }
/// <summary>
/// Gets the raycast that was used to detect the collision.
/// </summary>
public RaycastHit RaycastHit { get; }
/// <summary>
/// Gets the new projectile direction after being deflected.
/// </summary>
public Vector3 NewDirection { get; }
#endregion
#region Constructors & Finalizer
/// <summary>
/// Constructor.
/// </summary>
/// <param name="projectileSource">The projectile source</param>
/// <param name="raycastHit">The raycast used to detect projectile collision</param>
/// <param name="newDirection">The new, deflected, projectile direction</param>
public UxrDeflectEventArgs(UxrProjectileSource projectileSource, RaycastHit raycastHit, Vector3 newDirection)
{
ProjectileSource = projectileSource;
RaycastHit = raycastHit;
NewDirection = newDirection;
}
#endregion
}
}