Skip to content

Commit

Permalink
Update bulletserver docs
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnvoker committed Oct 11, 2023
1 parent 4b060c2 commit a3f76e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc_classes/BulletServer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
The total number of bullets managed by this server.
A [BulletServer] generates all bullets on ready, and adds/removes them from play by cycling them between active and inactive groups. Spawning bullets pulls them from the inactive group and makes them active, and recycles the oldest active bullet if no inactive bullets are available.
</member>
<member name="max_lifetime" type="float" setter="set_max_lifetime" getter="get_max_lifetime" default="2.8026e-45">
<member name="max_lifetime" type="float" setter="set_max_lifetime" getter="get_max_lifetime" default="0.0">
The maximium lifetime of any [Bullet] managed by the server. Bullets older than this are automatically popped.
</member>
<member name="play_area_allow_incoming" type="bool" setter="set_play_area_allow_incoming" getter="get_play_area_allow_incoming" default="true">
<member name="play_area_allow_incoming" type="bool" setter="set_play_area_allow_incoming" getter="get_play_area_allow_incoming" default="false">
If [code]true[/code], bullets outside of the play area will only be automatically popped if they are moving away from it.
Bullets outside of the play area will not detect collisions.
Calculation of whether bullet is "incoming" is approximate, and based on its angle to the center of the play area, so bullets that would enter a corner of the play area at an oblique angle may still be popped.
Expand Down

0 comments on commit a3f76e9

Please sign in to comment.