UxrProjectileSource.Shoot Method (Int32, Vector3, Quaternion)

Shoots a round, overriding the source position and orientation.

Namespace: UltimateXR.Mechanics.Weapons
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public void Shoot(
	int shotTypeIndex,
	Vector3 projectileSource,
	Quaternion projectileOrientation
)

Parameters

 

shotTypeIndex
Type: System.Int32
Index in ShotTypes, telling which shot type to fire
projectileSource
Type: Vector3
Source shot position
projectileOrientation
Type: Quaternion
Shot source orientation. The shot will be fired in the z (forward) direction

See Also

Reference

UxrProjectileSource Class
Shoot Overload
UltimateXR.Mechanics.Weapons Namespace