Click or drag to resize

SimpleExplosionActivate Method

Activate the explosion at the specified position.

Namespace:  Internal.tainicom.Aether.Physics2D.Common.PhysicsLogic
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public Dictionary<Body, Vector2> Activate(
	Vector2 pos,
	float radius,
	float force,
	float maxForce = 3.402823E+38f
)

Parameters

pos
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The position (center) of the explosion.
radius
Type: SystemSingle
The radius of the explosion.
force
Type: SystemSingle
The force applied
maxForce (Optional)
Type: SystemSingle
A maximum amount of force. When force gets over this value, it will be equal to maxForce

Return Value

Type: DictionaryBody, Vector2
A list of bodies and the amount of force that was applied to them.
See Also