C4 Engine
C4 Engine API Documentation

Field::SetForce

Defined in:  C4Fields.h
Assigns a force to a field.
Prototype

void SetForce(Force *force);

Parameters
force The force object to assign to the field.
Description
The SetForce function assigns the force specified by the force parameter to a field. The force parameter may be nullptr to remove any existing force from the field.
See Also

Field::SetForce

Force