The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

Show your WorkFrom the old forum

Parabola and Trajectory Nodes

No replies yet

  1. Attached are demos for two simple nodes: parabola and trajectory.

    Both produce a single quadratic curve (no resampling). Instead of the T and Distance parameters provided by the quad_curve node, these two nodes allow you to create curves based on standard parameters.

    Parabola takes values for A, B, C, X1, and X2 to produce a parabola in standard notation: Ax^2 + Bx + C between X1 and X2. The demo simply displays one such parabola.

    Trajectory is similar but takes parameters for angle, velocity, height, and gravity to produce a parabolic trajectory curve. Units are in degrees, meters, and seconds with one meter per pixel starting at the origin. The demo comes with some related nodes:

    • traj_time returns an X.Y point for a time T of a given trajectory
    • cannon draws a whimsical cannon atop a platform that can be adjusted to various angles and heights
    • cannon_offset returns height and x_offset values from the current state of the cannon node that can then be used to adjust the trajectory and traj_time nodes

    For more information about calculating trajectories, see https://www.whitman.edu/Documents/Academics/Mathematics/2016/Henelsmith.pdf

    Enjoy!

    John

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply