BombHopper.io Wiki
(Add page about world and its boundaries)
Tag: Visual edit
 
m (various things)
Tag: Visual edit
Line 1: Line 1:
 
The world is a huge Cartesian space.
 
The world is a huge Cartesian space.
   
=== Boundaries ===
+
=== '''Boundaries''' ===
The physics engine uses JavaScript Numbers, which are float64. The [https://www.mathworks.com/help/matlab/ref/realmax.html limit of float64 is] between -1.797693134862316e+308 and 1.797693134862316e+308 but levels using such high values don't load.
+
The physics engine uses JavaScript Numbers, which are '''float64'''. The [https://www.mathworks.com/help/matlab/ref/realmax.html limit of float64 is] between -1.797693134862316e+308 and 1.797693134862316e+308 but levels using such high values '''don't load'''.
 
[[File:Sky4ce09- no colisions around level boundaries.png|thumb|298x298px]]
 
[[File:Sky4ce09- no colisions around level boundaries.png|thumb|298x298px]]
Sky4ce09 [https://discordapp.com/channels/526188679006388254/526188679006388256/703706517618032832 experimentally figured out] that 5.7976931348623157e+17 is the x-axis limit. However, weird things happen at such distances, the aim line disappears and collisions no longer work.
+
Sky4ce09 [https://discordapp.com/channels/526188679006388254/526188679006388256/703706517618032832 experimentally figured out] that values from roughly x: 5*10^17 to x: 6*10^18 represent some sort of '''x-axis limit''' ''(example being 5.7976931348623157e+17)''. However, weird things happen at such distances, the aim line disappears and collisions no longer work.
   
=== Sizes ===
+
=== '''Sizes''' ===
For reference, a [[Hoppi]] measures 40.0 units.
+
For reference, a [[Hoppi]] measures 40.0 distance units and a Door measures 100.0*160.0 distance units.

Revision as of 12:03, 26 April 2020

The world is a huge Cartesian space.

Boundaries

The physics engine uses JavaScript Numbers, which are float64. The limit of float64 is between -1.797693134862316e+308 and 1.797693134862316e+308 but levels using such high values don't load.

Sky4ce09- no colisions around level boundaries

Sky4ce09 experimentally figured out that values from roughly x: 5*10^17 to x: 6*10^18 represent some sort of x-axis limit (example being 5.7976931348623157e+17). However, weird things happen at such distances, the aim line disappears and collisions no longer work.

Sizes

For reference, a Hoppi measures 40.0 distance units and a Door measures 100.0*160.0 distance units.