dragField()
Creates and returns a field behavior for slowing an object’s velocity.
Declaration
class func dragField() -> SelfReturn Value
A field behavior object that applies a drag force to items.
Discussion
This field simulates the force of friction on an item. The force is applied in the opposite direction of the affected item’s velocity vector and has a magnitude that is proportional to the field’s strength property and the item’s current velocity.