Difference between revisions of "DCS volume box"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:DCSenumertorTables |name= box |vNum= 1.2.0 |desc= The box volume is used to define a search area for the functions using a volume. It creates a box between the o...")
 
 
Line 7: Line 7:
 
|desc= The box volume is used to define a search area for the functions using a volume. It creates a box between the outer bounds of the min and max value. Needs to be oriented with the following rules:
 
|desc= The box volume is used to define a search area for the functions using a volume. It creates a box between the outer bounds of the min and max value. Needs to be oriented with the following rules:
  
'''min''': western-southern-lower vertex of the box
+
'''min''': vec3 coordinate located at the western-southern-lower vertex of the box
  
'''max''': eastern-northern-upper vertex of the box
+
'''max''': vec3 coordinate located at the eastern-northern-upper vertex of the box
  
 
|uses= [[DCS_func_searchObjects|world.searchObjects]] and [[DCS_func_removeJunk|world.removeJunk]]
 
|uses= [[DCS_func_searchObjects|world.searchObjects]] and [[DCS_func_removeJunk|world.removeJunk]]

Latest revision as of 09:52, 4 July 2023

Scripting Root

Enumerator: box Added with: 1.2.0
Description: The box volume is used to define a search area for the functions using a volume. It creates a box between the outer bounds of the min and max value. Needs to be oriented with the following rules:

min: vec3 coordinate located at the western-southern-lower vertex of the box

max: vec3 coordinate located at the eastern-northern-upper vertex of the box

Uses: world.searchObjects and world.removeJunk
Format: The following is the format of the box table.
  {
  id = world.VolumeType.BOX,
  params = {
    min = Vec3,
    max = Vec3
  }
 }
constants: N/A
notes: Volumes: segment, box, sphere, pyramid