Pixi GSAP Physics
Apply 2D physics-like motion to Pixi objects using GSAP.
The Pixi GSAP Physics node moves a display object according to an initial angle/velocity or X/Y components, with optional forces like acceleration, gravity, and friction.
Target
| Data | Description |
|---|
| Target | Pixi DisplayObject (or node exposing pixiObject) |
Control
| Signal | Description |
|---|
| Start | Start tween |
| Restart | Restart tween |
| Stop | Stop tween |
| Pause | Pause tween |
| Resume | Resume tween |
| Apply Now | Start immediately |
| Data | Description |
|---|
| Auto Start | Start automatically once target resolves (default: false) |
| Paused | Initialize in paused state (default: false) |
| Duration | Duration in seconds (default: 2) |
| Repeat | Repetitions (-1 = infinite) (default: 0) |
| Yoyo | Ping-pong when repeating (default: false) |
| Overwrite | GSAP overwrite mode (default: 'auto') |
Property Mapping
| Data | Description |
|---|
| X Prop | Property name for X (default: 'x') |
| Y Prop | Property name for Y (default: 'y') |
Mode
| Data | Description |
|---|
| Mode | 'angleVelocity' or 'components' |
| Angle | Launch angle in degrees (for 'angleVelocity') |
| Velocity | Speed in px/s (for 'angleVelocity') |
| VX | X velocity in px/s (for 'components') |
| VY | Y velocity in px/s (for 'components') |
Forces
| Data | Description |
|---|
| Acceleration | Acceleration magnitude (default: 0) |
| Acceleration Angle | Angle in degrees for acceleration vector (default: 0) |
| Gravity | Gravity in px/s² (default: 400) |
| Friction | 0..1 friction coefficient (default: 0) |
Render
| Data | Description |
|---|
| Request Render On Update | Request application render on each update (default: true) |
Outputs
| Data | Description |
|---|
| Node Reference | This node reference |
| Is Active | Tween active flag |
| Progress | Normalized progress (0..1) |
Usage
- Set a Target, choose a Mode, configure velocities and forces, then Start.
- Use Auto Start for automatic run when the target resolves.