Skip to content

Commit be89634

Browse files
committed
Fix :overlapShape docs;
1 parent fbdbe4f commit be89634

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

api/init.lua

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42952,6 +42952,12 @@ return {
4295242952
type = "number",
4295342953
description = "The z component of the axis of rotation."
4295442954
},
42955+
{
42956+
name = "maxDistance",
42957+
type = "number",
42958+
description = "The maximum distance at which a shape can be detected, in meters. Zero will detect shapes touching the input shape, 1.0 will detect shapes within 1 meter of the input shape, etc.",
42959+
default = "0"
42960+
},
4295542961
{
4295642962
name = "filter",
4295742963
type = "string",
@@ -42983,6 +42989,12 @@ return {
4298342989
type = "Quat",
4298442990
description = "The orientation of the shape."
4298542991
},
42992+
{
42993+
name = "maxDistance",
42994+
type = "number",
42995+
description = "The maximum distance at which a shape can be detected, in meters. Zero will detect shapes touching the input shape, 1.0 will detect shapes within 1 meter of the input shape, etc.",
42996+
default = "0"
42997+
},
4298642998
{
4298742999
name = "filter",
4298843000
type = "string",
@@ -43039,6 +43051,12 @@ return {
4303943051
type = "number",
4304043052
description = "The z component of the axis of rotation."
4304143053
},
43054+
{
43055+
name = "maxDistance",
43056+
type = "number",
43057+
description = "The maximum distance at which a shape can be detected, in meters. Zero will detect shapes touching the input shape, 1.0 will detect shapes within 1 meter of the input shape, etc.",
43058+
default = "0"
43059+
},
4304243060
{
4304343061
name = "filter",
4304443062
type = "string",
@@ -43106,6 +43124,12 @@ return {
4310643124
type = "Quat",
4310743125
description = "The orientation of the shape."
4310843126
},
43127+
{
43128+
name = "maxDistance",
43129+
type = "number",
43130+
description = "The maximum distance at which a shape can be detected, in meters. Zero will detect shapes touching the input shape, 1.0 will detect shapes within 1 meter of the input shape, etc.",
43131+
default = "0"
43132+
},
4310943133
{
4311043134
name = "filter",
4311143135
type = "string",

api/lovr/physics/World/overlapShape.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,19 @@ return {
110110
},
111111
variants = {
112112
{
113-
arguments = { 'shape', 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az', 'filter', 'callback' },
113+
arguments = { 'shape', 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az', 'maxDistance', 'filter', 'callback' },
114114
returns = {}
115115
},
116116
{
117-
arguments = { 'shape', 'position', 'orientation', 'filter', 'callback' },
117+
arguments = { 'shape', 'position', 'orientation', 'maxDistance', 'filter', 'callback' },
118118
returns = {}
119119
},
120120
{
121-
arguments = { 'shape', 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az', 'filter' },
121+
arguments = { 'shape', 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az', 'maxDistance', 'filter' },
122122
returns = { 'collider', 'shape', 'x', 'y', 'z', 'nx', 'ny', 'nz' }
123123
},
124124
{
125-
arguments = { 'shape', 'position', 'orientation', 'filter' },
125+
arguments = { 'shape', 'position', 'orientation', 'maxDistance', 'filter' },
126126
returns = { 'collider', 'shape', 'x', 'y', 'z', 'nx', 'ny', 'nz' }
127127
}
128128
},

0 commit comments

Comments
 (0)