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

screenshot of the scene

Author: phunanon

Group: Default

Filesize: 49.69 kB

Date added: 2017-06-23

Rating: 5

Downloads: 121

Views: 57

Comments: 2

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0


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.

Please log in to rate this scene
Similar scenes
Title: [Phun/Algodoo] Robin ballistic computer
Rating: 8.9534
Filesize: 1.43 MB
Downloads: 51938
Comments: 10
Ratings: 49
Date added: 2009/05/10 00:11:36
Made with: Phun
Rating: rated 9
Title: [Phun/Algodoo] Mechanical ballistic computer II
Rating: 6.1111
Filesize: 214.92 kB
Downloads: 1790
Comments: 3
Ratings: 3
Date added: 2014/04/14 08:00:09
Made with: Phun
Rating: rated 6.1
Title: Ank II.IV
Rating: 5
Filesize: 262.9 kB
Downloads: 657
Comments: 0
Ratings: 1
Date added: 2017/06/23 13:34:14
Made with: Algodoo Phunlet
Rating: rated 5
Title: explosive ballistic missiles
Rating: 8
Filesize: 43.11 kB
Downloads: 26129
Comments: 18
Ratings: 14
Date added: 2009/07/04 01:59:02
Made with: Phun
Rating: rated 8
Title: Ballistic Nukes
Rating: 5
Filesize: 0.59 MB
Downloads: 4116
Comments: 1
Ratings: 1
Date added: 2017/09/12 17:30:24
Made with: Algodoo v2.1.0
Rating: rated 5
Title: stepper motor
Rating: 5.7778
Filesize: 22.29 kB
Downloads: 298
Comments: 2
Ratings: 3
Date added: 2009/12/06 21:35:11
Made with: Algodoo before v1.8.5
Rating: rated 5.8
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!