Browse Search Popular Register Upload Rules User list Login:
Search:
auto aim gun targeting system (NEED HELP)

Image:
screenshot of the scene

Author: ianno

Group: Default

Filesize: 60.5 kB

Date added: 2009-08-23

Rating: 5

Downloads: 321

Views: 1452

Comments: 2

Ratings: 1

Times favored: 0

Made with: Phun

Tags:

Scene tag

PLZ HELP ME. i can script but iam not SO good yet that's the reason that i called for help:+

thanks if you wanne help and if you made it plz upload it as a scene response
Last edited at 2009/08/23 13:24:54 by ianno
Please log in to rate this scene
edit
Similar scenes
Title: Space assault frigate
Rating: 7.3077
Filesize: 100.19 kB
Downloads: 2824
Comments: 2
Ratings: 7
Date added: 2009/11/02 12:08:53
Made with: Algodoo before v1.8.5
Rating: rated 7.3
download
Title: Homing missile + Active targeting system
Rating: 5
Filesize: 45.95 kB
Downloads: 1759
Comments: 8
Ratings: 1
Date added: 2018/06/21 23:38:59
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: automatic targeting system laser rifle turret, no human control
Rating: 5.625
Filesize: 344.9 kB
Downloads: 2298
Comments: 3
Ratings: 2
Date added: 2017/03/16 18:17:35
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: SAG MK Ve | Semi-Auto Tank Gun
Rating: 5
Filesize: 446.17 kB
Downloads: 1682
Comments: 2
Ratings: 1
Date added: 2015/03/22 15:33:05
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Homing Anti Air Missile [Algodoo only]
Rating: 6.7273
Filesize: 15.11 kB
Downloads: 1719
Comments: 5
Ratings: 5
Date added: 2010/03/15 15:01:44
Made with: Algodoo before v1.8.5
Rating: rated 6.7
download
Title: NLOS - Flak/Artillery Cannon
Rating: 5.125
Filesize: 459 kB
Downloads: 1483
Comments: 0
Ratings: 2
Date added: 2010/01/22 03:56:34
Made with: Phun
Rating: rated 5.1
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
The plan for the auto aim gun ianno 5 (1 vote) 616 7 2009/08/19 20:00:54
show grid
theres no way to track the position of an object, so just make it mouse-pointed for now(NOT ballpointed).

first, you need to calculate the angle between [gunx+anything positive, guny], [gun], and [app.mousepos]. then making a comparation to the angle gun is pointing at(AFAIK, math.atan2(e.normal) should do the trick, but... theres no atan2 in phun:lol: , so you should emulate it by using 2*math.atan(e.normal(1)/(e.normal(0)+1))

then. the gun's motor(or just a turning mechanism) needs to be changed in according to that, in an attempt to make the ground-gun-mouse angle minus the angle gun is pointing as closest to zero as possible

i suck in trigonometry, so.... good luck:huh:
Last edited at 2009/08/25 01:30:00 by RA2lover
ok thanks:tup: