diff options
| author | jussi | 2024-08-06 14:03:09 +0300 |
|---|---|---|
| committer | jussi | 2024-08-06 14:03:09 +0300 |
| commit | 3cb6567bda27387f0727ba32084429bc27c40502 (patch) | |
| tree | 9f6de5ab901e311ff70c8819d4258a782f985619 /examples | |
| parent | b011b2ca4e161fea2a742cb9b1673cd84cf0eba5 (diff) | |
| download | reilua-enhanced-3cb6567bda27387f0727ba32084429bc27c40502.tar.gz reilua-enhanced-3cb6567bda27387f0727ba32084429bc27c40502.tar.bz2 reilua-enhanced-3cb6567bda27387f0727ba32084429bc27c40502.zip | |
GetRayBoxCells exit normal fix.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/ray_box_cells/main.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/ray_box_cells/main.lua b/examples/ray_box_cells/main.lua index 64e0db2..5fb49ec 100644 --- a/examples/ray_box_cells/main.lua +++ b/examples/ray_box_cells/main.lua @@ -10,8 +10,7 @@ Cam3D = require( "camera3d" ) local monitor = 0 local camera = {} --- local box = BoundinBox:new( { -8, 0, -8 }, { 16, 16, 16 } ) -local box = BoundinBox:new( { -7, 1, -8 }, { 4, 1, 7 } ) +local box = BoundinBox:new( { -8, 0, -8 }, { 16, 16, 16 } ) local cellSize = Vector3:new( 1, 1, 1 ) local drawCellSize = cellSize:clone() local ray = nil @@ -74,7 +73,7 @@ local function drawSpinner( axis, pos ) local result = 0 local bounds = Rectangle:temp( pos.x, pos.y, 96, 24 ) - result, cellSize[ axis ] = RL.GuiSpinner( bounds, axis, cellSize[ axis ], 1, box.max[ axis ], spinnerEdit[ axis ] ) + result, cellSize[ axis ] = RL.GuiSpinner( bounds, axis, cellSize[ axis ], 1, 16, spinnerEdit[ axis ] ) if result == 1 then spinnerEdit[ axis ] = not spinnerEdit[ axis ] |
