Forts
The Forts Foundry
Player made maps and mods for the physics-based RTS Forts!
Learn More
Barnack 9 30 May, 2019 @ 9:29am
"Walking" projectile?
Hi,
is it possible to make a "projectile" that "walks" along the floor (not bouncing like a ball, or at least bouncing so little that it cant be noticed), and that can be hit by other projectiles?
< >
Showing 1-4 of 4 comments
[DEV] BeeMan  [developer] 39 30 May, 2019 @ 4:10pm 
I don't think so.
Kai 8 17 Jun, 2019 @ 4:33am 
It might be possible, you'd have to make it so upon hitting a 'terrain' and not a block, it will attempt to crawl.

When it triggers, grab the collision box of the terrain and force the projectile to move forward along the terrain. You'd have to do a line of sight check from the projectile to the terrain in a given direction and adjust the projectile as the terrain shifts.

Frankly you have to do this in code.
Last edited by Kai; 17 Jun, 2019 @ 4:34am
Barnack 9 17 Jun, 2019 @ 8:17am 
@Kai if it was Angelscript or Chaiscript i'd totally do thatjust because of the c-likeliness. But lua... i just can't get into it enough
[DEV] BeeMan  [developer] 39 17 Jun, 2019 @ 6:52pm 
The game doesn't expose the functionality to scripts that you would need to do it.
< >
Showing 1-4 of 4 comments
Per page: 1530 50