UxrWeaponManager.RegisterNewProjectileShot Method
Registers a new projectile shot so that it gets automatically update by the manager from that moment until it hits something or gets destroyed.
Namespace: UltimateXR.Mechanics.Weapons
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public void RegisterNewProjectileShot(
UxrProjectileSource projectileSource,
UxrShotDescriptor shotDescriptor,
Vector3 position,
Quaternion orientation
)
Parameters
- projectileSource
- Type: UltimateXR.Mechanics.Weapons.UxrProjectileSource
Projectile source - shotDescriptor
- Type: UltimateXR.Mechanics.Weapons.UxrShotDescriptor
Shot descriptor - position
- Type: Vector3
World position - orientation
- Type: Quaternion
World orientation. The projectile will travel in the forward (z) direction
See Also
Reference
UxrWeaponManager Class
UltimateXR.Mechanics.Weapons Namespace