Browse Search Popular Register Upload Rules User list Login:
Search:
Thyme example: Ballistic angle

Image:
screenshot of the scene

Author: phunanon

Group: Default

Filesize: 49.69 kB

Date added: 2017-06-23

Rating: 5

Downloads: 330

Views: 259

Comments: 2

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This example includes two guns - one aims directly, the other aims overhead. The mathematical functions within this scene demonstrate ballistic trajectory when a velocity and coordinates are supplied.

Try it out by moving the mouse to various locations to the right and above of this position, for hundreds of metres.

Inspect the postStep function of the red transparent firing blocks, and study the Math Block for math.calcBallisticAngle(), to see the arguments given.
The velocity (speed) the projectile is to travel is encoded in the density of the firing block.


Enjoy!
Please log in to rate this scene
edit
Similar scenes
Title: [Phun/Algodoo] Robin ballistic computer
Rating: 8.9723
Filesize: 1.43 MB
Downloads: 56377
Comments: 10
Ratings: 50
Date added: 2009/05/10 00:11:36
Made with: Phun
Rating: rated 9
download
Title: [Phun/Algodoo] Mechanical ballistic computer II
Rating: 6.1111
Filesize: 214.92 kB
Downloads: 2184
Comments: 3
Ratings: 3
Date added: 2014/04/14 08:00:09
Made with: Phun
Rating: rated 6.1
download
Title: explosive ballistic missiles
Rating: 8
Filesize: 43.11 kB
Downloads: 42266
Comments: 18
Ratings: 14
Date added: 2009/07/04 01:59:02
Made with: Phun
Rating: rated 8
download
Title: [Thyme][Functional!] My DIY Butterfly drone, replicated in Algodoo!
Rating: 5
Filesize: 70.38 kB
Downloads: 842
Comments: 5
Ratings: 1
Date added: 2015/12/30 01:57:38
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Canon and sight
Rating: 6.1111
Filesize: 118.81 kB
Downloads: 2708
Comments: 5
Ratings: 3
Date added: 2013/06/14 09:26:35
Made with: Phun
Rating: rated 6.1
download
Title: ballistic computer
Rating: 7.25
Filesize: 37.52 kB
Downloads: 955
Comments: 4
Ratings: 9
Date added: 2009/10/21 18:54:10
Made with: Algodoo before v1.8.5
Rating: rated 7.3
download
I'm happy that you decided to come back to Algobox and become active again! There are not very many "technical" people here any more. It has become overrun by young children posting simple scenes of cartoon stick men or marbles. )|(

Anyhow, there seems to be a couple of problems with this scene, unless I'm not using it correctly. The first is that neither laser follows the cursor exactly where it points. They are both off-target by at least 30 to 50 degrees. And the other issue is the fact that the lasers do not function at all beyond about 210 or 220 meters. Beyond that range, the lasers just point along the ground. But even though the lasers do not point as expected, the projectiles do hit whichever target that the mouse cursor is pointing to! That is quite impressive!

Any idea what might be happening?
Last edited at 2017/06/23 22:37:40 by Xray
Well, the pointing towards the ground is to be expected - you are going out of the range of the mathematical function, which I believe just returns zero in that case.

Being off target (not pointing towards the mouse) is wholly expected - it uses ballistics rather than pointing directly, to counteract gravity!