Turret+bullet+gravity

Discussion and feedback on Construct 2

Post » Fri May 24, 2013 5:04 am

Hello everyone,

Is there any good way to have the turret behavior aim accurately when the bullets it's firing have gravity? Obviously having a bullet with gravity will throw the targeting calculation off if it's not taking it into account.

Basically I would like the turret to be firing arced shot. Think worms style.

Let me know if anything comes to mind. Thanks!
B
52
S
13
G
7
Posts: 146
Reputation: 6,798

Post » Thu May 30, 2013 4:37 pm

Thoughts anyone?
B
52
S
13
G
7
Posts: 146
Reputation: 6,798

Post » Wed Jun 12, 2013 4:48 am

@ashley @yann @newt? Sorry to name drop. :/

Just trying to figure out if it's possible or if adding bullet gravity compensation needs to be an enhancement request.
B
52
S
13
G
7
Posts: 146
Reputation: 6,798

Post » Wed Jun 12, 2013 12:52 pm

The maths behind this is pretty complicated. The turret behavior can track linearly moving objects, but it doesn't take in to account anything other than a linearly moving bullet with no acceleration or gravity.
Scirra Founder
B
397
S
236
G
88
Posts: 24,428
Reputation: 194,570


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests