| Property | Value |
|---|---|
| Native Name | APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS |
| Hash | 0x18FF00FC7EFF559E |
| Return Type | void |
| Parameters | entity (Entity), forceType (int), x (float), y (float), z (float), nComponent (int), bLocalForce (BOOL), bScaleByMass (BOOL), bApplyToChildren (BOOL) |
Description: Apply a force to an entities center of mass.
Parameters
entity(Entity) — The entity handleforceType(int) — The force type, seeAPPLY_FORCE_TO_ENTITYx(float) — The x component of the force to applyy(float) — The y component of the force to applyz(float) — The z component of the force to applynComponent(int) — Component of the entity to apply the force too. Only matters for breakable or articulated (ragdoll) physics. 0 means the root or parent componentbLocalForce(BOOL) — Specifies whether the force vector passed in is in local or world coordinates.truemeans the force will get automatically transformed into world space before being appliedbScaleByMass(BOOL) — Specifies whether to scale the force by massbApplyToChildren(BOOL) — Defaultfalse. If the force should be applied to any attached children