Hi,
I have what I thought would be a simple problem to fix, the thread is here https://www.scirra.com/forum/turret-behaviour-set-max-rotation-angle_t106442
[attachment=0:3mov7i1q][/attachment:3mov7i1q]
The turrets go through the floor. This game is using physics, so setting the floor to solid does not help.
To fix this issue I'd really like to be able to set the min and max turret rotation in the turret behaviour dialogue.
Or have some way for the turret (not using physics) to stop rotating when it hits something, in this case the floor - which is using physics so the player ship which also uses physics can interact with it.
I've just gone through the javascript sdk docs, but I don't feel confident trying to add this behaviour myself. Although I can see where it could be done in the turret behaviours runtime.js, possibly in
// Rotate towards target
if (this.rotateEnabled)
Anyhoo, this addition to the turret behaviour would be great (for me!). Not sure if anyone else has a requirement for it, but I'd be surprised if not.
Thanks
Nick .