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

Views: 1548

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: Auto Targeting System
Rating: 6.3
Filesize: 47 kB
Downloads: 1312
Comments: 5
Ratings: 4
Date added: 2009/07/21 05:35:57
Made with: Phun
Rating: rated 6.3
download
Title: automatic targeting system laser rifle turret, no human control
Rating: 5.625
Filesize: 344.9 kB
Downloads: 2484
Comments: 3
Ratings: 2
Date added: 2017/03/16 18:17:35
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Auto-braking system DEMO *read desc*
Rating: 5.625
Filesize: 25.56 kB
Downloads: 1037
Comments: 4
Ratings: 2
Date added: 2012/09/13 09:21:48
Made with: Algodoo v2.0.1
Rating: rated 5.6
download
Title: Homing Anti Air Missile [Algodoo only]
Rating: 6.7273
Filesize: 15.11 kB
Downloads: 1854
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: 1578
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: 1073
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: 700
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: