UxrActor.ReceiveImpact Method
Makes the actor receive a damaging projectile impact.
Namespace: UltimateXR.Mechanics.Weapons
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public void ReceiveImpact(
UxrActor actorSource,
RaycastHit raycastHit,
float damage
)
Parameters
- actorSource
- Type: UltimateXR.Mechanics.Weapons.UxrActor
Actor source of the projectile - raycastHit
- Type: RaycastHit
Raycast that hit the actor - damage
- Type: System.Single
Damage to be taken