471,344 Members | 1,012 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,344 software developers and data experts.

Python Trajectory Module?

Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
Dec 31 '07 #1
4 2857
sq***********@gmail.com schrieb:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.
Maybe the ODE library and it's Python-wrapping PyODE are useful for you.

Diez
Dec 31 '07 #2
On Dec 31, 9:40*am, "squishywaf...@gmail.com"
<squishywaf...@gmail.comwrote:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
Try VPython.

-- Paul
Dec 31 '07 #3
sq***********@gmail.com wrote:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
If you combine the advice of Diez B. Roggish and Paul McGuire:
Download and install VPython.
Download and install PyODE.
Get and run VPython Contributed program:
http://www.vpython.org/contributed/visualjoints.py
which shows a weight on a hinge with another attached to the ball;
quite believable dynamics. Although the code is really not
carefully written, looking at it may give you a sense of how
little work you'll have to do to get some physics action going.
Dec 31 '07 #4
sq***********@gmail.com wrote:
Greetings,

I was wondering if there was a python Module/Library out there that
handles some trajectory/physics stuff like moving an object along a
straight path in an X,Y 2D (or 3D) plane or calculating parabolic
arcs. I'd really settle for just the moving of an object along a
straight line.

I know it's not terribly difficult to implement this on your own, but
I'd rather not re-invent the wheel if someone else already did a good
job of it the first time.

Thanks!
Depends on how detailed / graphical you've in mind.
You might be interested in this:

http://oase.uci.kun.nl/~mientki/data...reenshots.html

I've put a scanned version of my written notes about the trajectory example.
No need for ODE in my very simple mind, because the functions describing
the solution are already known.

If you want to view the demos / animations,
be sure to view the demo at the bottom first,
because it explains the philosophy behind the program.
Only 1 major feature is not described in this demo (because when I made
the demo I had no solution for it, now I think I have)
and that is :
an integrated help / instruction / assignment / fill-in forms /
judgement, specially for educational puposes.

The program is not yet released,
because I'm now cleaning it up and debugging it (by making demos ;-)
cheers,
Stef


Jan 2 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Stephen Ferg | last post: by
6 posts views Thread by Jonathon Blake | last post: by
5 posts views Thread by jeremy.d.brewer | last post: by
5 posts views Thread by Will McGugan | last post: by
4 posts views Thread by Luke Miller | last post: by
reply views Thread by Will McGugan | last post: by
2 posts views Thread by vedran_dekovic | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.