UxrExplodeHierarchy.Explode Method

Explodes an object.

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

Syntax

C#

public static void Explode(
	GameObject root,
	float minExplodeVelocity,
	float maxExplodeVelocity,
	float secondsToExplode,
	float piecesLifeSeconds
)

Parameters

 

root
Type: GameObject
Root object to explode
minExplodeVelocity
Type: System.Single
Minimum random velocity assigned to the chunks
maxExplodeVelocity
Type: System.Single
Maximum random velocity assigned to the chunks
secondsToExplode
Type: System.Single
Seconds to wait before exploding
piecesLifeSeconds
Type: System.Single
Life in seconds to assign to the chunks, after which they will be destroyed

See Also

Reference

UxrExplodeHierarchy Class
UltimateXR.Mechanics.Weapons Namespace