Go to: Related nodes. Attributes.

The dragField node implements a simple drag force similar to wind resistance. It creates a force proportional to the velocity of the object being affected. The drag node has directonX/Y/Z attributes and a useDirection attribute. If useDirection is false, the drag pushes back in the oppsite of whatever direction the affected object is moving. If useDirection is true, the drag node uses the component of the object's velocity along the specified direction in place of the object's original velocity.

Node name Parents Classification MFn type Compatible function sets
dragField field drawdb/geometry/dynamics/field kDrag kBase
kNamedObject
kDependencyNode
kDagNode
kTransform
kField
kDrag

Related nodes

rigidConstraint, dynBase, field, airField, turbulenceField, radialField, vortexField, newtonField, volumeAxisField, uniformField, gravityField, pointEmitter, particle, rigidBody, geoConnectable, spring

Attributes (9)

currentTime, direction, directionX, directionY, directionZ, inheritVelocity, motionAttenuation, speedAttenuation, useDirection

Long name (short name) Type Default Flags
direction (d) compound n/a outputinputconnectablestorable
direction of drag
directionX (dx) double 0.0 outputinputconnectablestorablekeyable
x-direction of drag
directionY (dy) double 0.0 outputinputconnectablestorablekeyable
y-direction of drag
directionZ (dz) double 0.0 outputinputconnectablestorablekeyable
z-direction of drag
useDirection (ud) bool false outputinputconnectablestorablekeyable
use direction parm yes/no
inheritVelocity (iv) double 0 outputinputconnectablestorablekeyable
the amount that drag is relative to movement of the drag field
motionAttenuation (mna) double 0.0 outputinputconnectablestorablekeyable
This reduces the effect of drag when the field is moving slowly. When motion attenuation is greater than zero there will be no drag when the field is stationary. When the speed of the the field is equal to or greater than the motion attenuation value then the full magnitude setting of the drag will be applied. This field requires that inheritVelocity be non-zero to have an effect.
speedAttenuation (spa) double 0.0 outputinputconnectablestorablekeyable
This attenuates the amount of drag when the speed of the particle is less than the speed attenuation value. This allows slow moving particles to not be affected much by the drag while still heavily damping fast moving ones.
currentTime (cti) time 0film outputinputconnectablekeyable
This is the current time used to compute the velocity of the drag field, which affects the force applied. By default, it is given an incoming connection from the main time node. This can be replaced with some other connection (e.g. from an expression or param curve), and then the solving is done based on that time value.