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

Views: 1559

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: Homing missile + Active targeting system
Rating: 5
Filesize: 45.95 kB
Downloads: 1915
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: 2494
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: 1822
Comments: 2
Ratings: 1
Date added: 2015/03/22 15:33:05
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Homing Missile - Final
Rating: 5
Filesize: 30.73 kB
Downloads: 1970
Comments: 0
Ratings: 1
Date added: 2012/07/12 21:37:48
Made with: Algodoo v2.0.1
Rating: rated 5
download
Title: NLOS - Flak/Artillery Cannon
Rating: 5.125
Filesize: 459 kB
Downloads: 1584
Comments: 0
Ratings: 2
Date added: 2010/01/22 03:56:34
Made with: Phun
Rating: rated 5.1
download
Title: LPT-3M
Rating: 5
Filesize: 0.57 MB
Downloads: 1077
Comments: 0
Ratings: 1
Date added: 2016/06/04 15:35:39
Made with: Algodoo v2.1.0
Rating: rated 5
download
This scene is a response to
show list
Title: The plan for the auto aim gun
Rating: 5
Filesize: 375.19 kB
Downloads: 709
Comments: 7
Ratings: 1
Date added: 2009/08/19 20:00:54
Made with: Phun
Rating: rated 5
download
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: