Gun Object
A gun object is any physics object marked as a gun and linked to a bullet preview object.
Object Game Settings
Gun And Bullet Settings let any configured physics object fire another preview object as a projectile.
What it controls
Use this page as the detailed reference for the Gun And Bullet Settings group inside the Object Game Settings menu.
A gun object is any physics object marked as a gun and linked to a bullet preview object.
The bullet is another preview object whose bullet data controls speed, angle offset, firing distance, spread, and radius variation.
A gun can fire on creation, on contact, on a control button, on touch, or automatically on a timer.
A gun can have infinite bullets or a limited initial bullet count.
How it works
These points describe what the system does after the level starts and the editor data becomes live gameplay behavior.
When a firing condition happens, the gun is queued to fire and checked for visibility, ammo, and valid bullet data.
The firing angle comes from the gun rotation or a fixed configured angle, plus bullet angle offsets.
The game clones the bullet preview object, places it at the firing offset, rotates it, and gives it launch velocity.
Multiple bullets can be fired at once with fixed spread, random angle range, random radius, or fixed radius range.
Setup flow
Use this checklist while building or debugging a level that uses Gun And Bullet Settings.
Make a bullet preview object and tune its physics before linking it to the gun.
Use create for traps, contact for impact weapons, control button for player action, and automatic for turrets.
The bullet should spawn outside the gun body and move fast enough to read without tunneling through targets.
If ammo is limited, make sure the player has enough shots and that re-arming logic is clear.