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
37
S
9
G
7
Posts: 143
Reputation: 6,017

Post » Thu May 30, 2013 4:37 pm

Thoughts anyone?
B
37
S
9
G
7
Posts: 143
Reputation: 6,017

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
37
S
9
G
7
Posts: 143
Reputation: 6,017

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
359
S
214
G
72
Posts: 22,952
Reputation: 178,630


Return to Construct 2 General

Who is online

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