UxrProjectileSource.ShotRaycastDistance Method
Gets the distance where a shot using the current position and orientation will impact.
Namespace: UltimateXR.Mechanics.Weapons
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public float ShotRaycastDistance(
int shotTypeIndex
)
Parameters
- shotTypeIndex
- Type: System.Int32
Index in ShotTypes, telling which shot type to use
Return Value
Type: Single
Shot distance or a negative value telling the current target is out of range
See Also
Reference
UxrProjectileSource Class
UltimateXR.Mechanics.Weapons Namespace