Parabola and Trajectory Nodes

john's Avatar

john

09 May, 2021 08:40 AM

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/Henels...

Enjoy!

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • parabola_screenshot.png 302 KB
  • trajectory_screenshot.png 419 KB
  • trajectories.png 606 KB
  • parabola_demos.zip 21.9 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

06 Sep, 2023 07:20 AM
05 Sep, 2023 08:40 PM
30 Aug, 2023 03:16 AM
19 Aug, 2023 03:22 AM
29 Jul, 2023 05:52 AM

 

28 Jul, 2023 10:53 PM
23 Jul, 2023 07:04 AM
14 Jul, 2023 03:05 AM
07 Jul, 2023 06:26 AM
05 Jul, 2023 11:44 PM
30 Jun, 2023 12:48 PM