5 [
Attribute(
"5", UIWidgets.Slider,
"Force multiplier (force is equal to mass * multiplier)",
"0 100 0.1")]
6 float m_fForceMultiplier;
7 private Physics m_Physics;
10 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
12 if (!
GetGame().GetWorldEntity())
19 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
27 boxComponent.CancelDragAction();
31 vector userOrigin = pUserEntity.GetOrigin();
32 vector thisOrigin = pOwnerEntity.GetOrigin();
33 vector dir = thisOrigin-userOrigin;