Instance Property

offset

The offset of the field’s center within its area of effect.

Declaration

@property(nonatomic) SCNVector3 offset;

Discussion

Some types of fields apply forces whose magnitude is relative to the distance between an object and the field’s center. (For details on each type of field, see the methods listed in Creating Physics Fields.) Changing the offset changes the effects of these field types.

With the default offset vector {0, 0, 0}, the center of a field is the center of its area of effect.

See Also

Specifying a Field’s Area of Effect

halfExtent

A location marking the end of the field’s area of effect.

scope

The area affected by the field, either inside or outside its region.

usesEllipsoidalExtent

A Boolean value that determines whether the field’s area of effect is shaped like a box or ellipsoid.

direction

The field’s directional axis.