Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Debug2DArea
- DebugBitVectorMap
- DebugCube
- DebugDensityMap
- DebugFlag
- DebugGizmo
- DebugInfoTable
- DebugManager
- DebugPath
- DebugPoint
- DebugText
- DebugUtil
- NoteManager
- Economy
- Elements
- EnvironmentalScore
- Errors
- Events
- GUI
- Handtools
- Hud
- I3d
- Input
- Jobs
- Maps
- Materials
- Misc
- Objects
- Parameters
- Placeables
- Placement
- Player
- Shop
- Sounds
- Specialization
- Specializations
- StateMachine
- Statistics
- Tasks
- Triggers
- Utils
- Vehicles
Engine v1_7_1_0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- general
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- NoteNode
- Overlays
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- VoiceChat
- XML
Foundation Reference
DebugBitVectorMap
FunctionsdrawDebugAreaRectangleFilled
DescriptionDefinitiondrawDebugAreaRectangleFilled()Code
93 | function DebugBitVectorMap:drawDebugAreaRectangleFilled(x, z, x1, z1, x2, z2, r, g, b, a) |
94 | local x3, z3 = x1, z2 |
95 | |
96 | local y = getTerrainHeightAtWorldPos(g_currentMission.terrainRootNode, x, 0, z) + self.yOffset |
97 | local y1 = getTerrainHeightAtWorldPos(g_currentMission.terrainRootNode, x1, 0, z1) + self.yOffset |
98 | local y2 = getTerrainHeightAtWorldPos(g_currentMission.terrainRootNode, x2, 0, z2) + self.yOffset |
99 | local y3 = getTerrainHeightAtWorldPos(g_currentMission.terrainRootNode, x3, 0, z3) + self.yOffset |
100 | |
101 | drawDebugTriangle(x, y, z, x2, y2, z2, x1, y1, z1, r, g, b, a, false) |
102 | drawDebugTriangle(x1, y1, z1, x2, y2, z2, x3, y3, z3, r, g, b, a, false) |
103 | end |
new
DescriptionDefinitionnew()Code
16 | function DebugBitVectorMap.new(radius, resolution, opacity, yOffset, customMt) |
17 | local self = setmetatable({}, customMt or DebugBitVectorMap_mt) |
18 | |
19 | self.radius = radius or 15 |
20 | self.resolution = resolution or 0.5 |
21 | |
22 | self.colorPos = {0, 1, 0, opacity} |
23 | self.colorNeg = {1, 0, 0, opacity} |
24 | |
25 | self.yOffset = yOffset or 0.1 |
26 | |
27 | return self |
28 | end |