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

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: 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: 1038
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 Missile - Final
Rating: 5
Filesize: 30.73 kB
Downloads: 1965
Comments: 0
Ratings: 1
Date added: 2012/07/12 21:37:48
Made with: Algodoo v2.0.1
Rating: rated 5
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: DPMS G2 Semi Auto Sniper System Rifle, 18" - .308
Rating: 5.625
Filesize: 103.36 kB
Downloads: 14193
Comments: 3
Ratings: 2
Date added: 2019/11/22 20:53:05
Made with: Algodoo v2.1.0
Rating: rated 5.6
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) 700 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: