Skip to main content

Pixi GSAP Inertia

Throw-and-glide motion with resistance, bounds, and snapping.

The Pixi GSAP Inertia node applies inertial motion to a display object using GSAP's InertiaPlugin-like behavior with velocity, resistance, bounds, and optional snapping.

Inputs

Target & Control

DataDescription
TargetPixi DisplayObject
SignalDescription
Auto StartStart when ready
StartStart tween
RestartRestart tween
StopStop tween
PausePause tween
ResumeResume tween
Apply NowStart immediately

Property Mapping

DataDescription
X PropProperty for X (default: 'x')
Y PropProperty for Y (default: 'y')
Rotation PropProperty for rotation (default: 'rotation')

Velocity

DataDescription
Use Current VelocityDerive initial velocity from current motion (default: false)
VXInitial X velocity
VYInitial Y velocity
Rotation VelocityInitial rotation velocity

Resistance

DataDescription
ResistanceLinear resistance (default: 200)
Rotation ResistanceRotational resistance (default: 300)

Bounds

DataDescription
Min X / Max XHorizontal bounds
Min Y / Max YVertical bounds
Min Rotation / Max RotationRotation bounds

Snap

DataDescription
Snap Step XSnap spacing on X
Snap Step YSnap spacing on Y
Snap Rotation StepSnap spacing for rotation

Tween

DataDescription
DurationBase duration (default: 1.2)
Max DurationUpper cap for duration (default: 2.0)
PausedStart paused (default: false)
OverwriteGSAP overwrite mode (default: 'auto')

Render

DataDescription
Request Render On UpdateRequest render each update (default: true)

Outputs

DataDescription
Node ReferenceThis node reference
Is ActiveTween active flag
ProgressNormalized progress (0..1)

Usage

  • Provide initial velocities or enable Use Current Velocity, set optional bounds/snap, then Start to throw with inertia.