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: 323

Views: 245

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: NLOS-PMS Non Line-On-Sight Portable Missile System
Rating: 7.7647
Filesize: 43.91 kB
Downloads: 2885
Comments: 7
Ratings: 11
Date added: 2010/08/23 11:11:19
Made with: Phun
Title: [Phun/Algodoo] Robin ballistic computer
Rating: 8.9723
Filesize: 1.43 MB
Downloads: 56316
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: 2177
Comments: 3
Ratings: 3
Date added: 2014/04/14 08:00:09
Made with: Phun
Rating: rated 6.1
download
Title: Ank II.IV
Rating: 5
Filesize: 262.9 kB
Downloads: 1079
Comments: 0
Ratings: 1
Date added: 2017/06/23 13:34:14
Made with: Algodoo Phunlet
Rating: rated 5
download
Title: [Thyme][Functional!] My DIY Butterfly drone, replicated in Algodoo!
Rating: 5
Filesize: 70.38 kB
Downloads: 833
Comments: 5
Ratings: 1
Date added: 2015/12/30 01:57:38
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: TG Armoury Ballistic Knife
Rating: 5
Filesize: 33.36 kB
Downloads: 1081
Comments: 1
Ratings: 1
Date added: 2013/07/30 15:08:38
Made with: Algodoo v2.1.0
Rating: rated 5
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!