Menu
IntroductionPhysics ObjectsForce EntitiesAdvanced UsageFurther Information
Affector Components
Gyro 2.1a

Affector components are responsible for actually performing interactions with physics objects, such as throwing them into the air, spinning them around or slowing them to a stop. While a force may host between zero and four affectors, you should always have at least one affector, as a force without them will be unable to interact with objects.

Many affectors support the use of an axis multiplier, which may be used amplify or restrict their operations on each of the three world axes. The multiplier is given as a standard vector, where a value of '1 1 2' would effectively produce double the regular effect in the z-axis. The exact effect of the multiplier on each affector will be discussed later.

The strength of an affector may be defined as either relative or absolute against object mass. Absolute affectors cause exactly the same effect with any object, regardless of how light or heavy it may be, while relative affectors will have a diminished effect against heavier objects. The power setting will be dependent upon this factor, as relative affector power should be defined using your usual mass units, while absolute affector power is a multiplier - that is, a power of 1.0 will exert a force equal to the mass of the object in question. For an example of absolute affectors in action, check the dampening field macro in gyro_user.qc.

The following affector components and controls are available:

Anti-gravity affector
Directional affector
Point/sphere affectors
Resistance affector
Strength scaling