PrimitiveComponent-AddRadialForce(Vector3_float_float_bool_bool).md

April 18, 2021 ยท View on GitHub

UnrealEngine.Framework.PrimitiveComponent

PrimitiveComponent.AddRadialForce(System.Numerics.Vector3, float, float, bool, bool) Method

Adds a force to all rigid bodies in the component, originating from the supplied world-space location

public void AddRadialForce(in System.Numerics.Vector3 origin, float radius, float strength, bool linearFalloff=false, bool accelerationChange=false);

Parameters

origin System.Numerics.Vector3
Origin of the force in world space

radius System.Single
Radius within which to apply the force

strength System.Single
Strength of the force to apply

linearFalloff System.Boolean
If true, the force will lose its strength linearly

accelerationChange System.Boolean
If true, strength is taken as a change in acceleration instead of a physical force (the mass will have no effect)