UxrWeaponManager.ApplyRadiusDamage Method

Applies radius damage to all elements around a source position.

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

Syntax

C#

public void ApplyRadiusDamage(
	UxrActor actorSource,
	Vector3 position,
	float radius,
	float nearDamage,
	float farDamage
)

Parameters

 

actorSource
Type: UltimateXR.Mechanics.Weapons.UxrActor
The actor that was responsible for the damage or null if there wasn’t any
position
Type: Vector3
Explosion world position
radius
Type: System.Single
Radius
nearDamage
Type: System.Single
Damage at the very same point of the explosion
farDamage
Type: System.Single
Damage at the distance set by radius

See Also

Reference

UxrWeaponManager Class
UltimateXR.Mechanics.Weapons Namespace