Skip to content

Commit 680b96b

Browse files
committed
2 parents ebdef88 + 40e3c7f commit 680b96b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/intro.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ QuickZone uses point-based detection. It checks if a specific point (e.g., the c
3232

3333
- **Budgeted Scheduler**: Set a hard frame budget (e.g., 1ms) to completely eliminate lag spikes. Workloads are smeared across frames to maintain a flat, predictable performance profile.
3434

35-
- **Shape Support**: Built-in for Blocks, Balls, Cylinders, Wedges and CornerWedges without relying on physics collision meshes..
35+
- **Shape Support**: Built-in for Blocks, Balls, Cylinders, Wedges and CornerWedges without relying on physics collision meshes.
3636

3737
- **Declarative Lifecycles**: Replace event-based logic with the observe pattern for declarative logic. There is no need to manually track `onEnter` and `onExit` states.
3838

3939
- **Decoupled Architecture**: Separate where tracking happens (Zones) from who is being tracked (Groups) and how the system responds (Observers). Bind complex behaviors to groups of entities with zero boilerplate.
4040

41-
- **ECS-Ready**: Built-in support for zero-allocation iterators and deterministic manual stepping, making it a perfect fit for ECS architectures and data-oriented workflows
41+
- **ECS-Ready**: Built-in support for zero-allocation iterators and deterministic manual stepping, making it a perfect fit for ECS architectures and data-oriented workflows.
4242

4343
- **Zero-Allocation Runtime**: By utilizing contiguous arrays and object pooling, QuickZone produces virtually zero GC pressure to avoid memory-related stutters.
4444

@@ -115,7 +115,7 @@ local Zone, Group, Observer = QuickZone.Zone, QuickZone.Group, QuickZone.Observe
115115
-- Create a group that automatically tracks the client's character (including respawns)
116116
local myPlayer = Group.localPlayer()
117117

118-
-- Find all current and future instances with the 'Water' tag.
118+
-- Find all current and future instances with the 'AntiGravity' tag.
119119
local zones = Zone.fromTag('AntiGravity', {
120120
metadata = { GravityMultiplier = 0.4 }
121121
})
@@ -139,7 +139,7 @@ gravityObserver:observe(function(player, zone)
139139
-- Create the Anti-Gravity force on enter
140140
local force = Instance.new('BodyForce')
141141
force.Name = 'AntiGravityForce'
142-
force.Force = Vector3.new(0, hrp.AssemblyMass * workspace.Gravity * (1- multiplier), 0)
142+
force.Force = Vector3.new(0, hrp.AssemblyMass * workspace.Gravity * (1 - multiplier), 0)
143143
force.Parent = hrp
144144

145145
-- Automatically destroy the force when the player exits the zone
@@ -172,7 +172,7 @@ gravityObserver:onLocalPlayerEnter(function(zone)
172172

173173
local force = Instance.new('BodyForce')
174174
force.Name = 'AntiGravityForce'
175-
force.Force = Vector3.new(0, hrp.AssemblyMass * workspace.Gravity * (1- multiplier), 0)
175+
force.Force = Vector3.new(0, hrp.AssemblyMass * workspace.Gravity * (1 - multiplier), 0)
176176
force.Parent = hrp
177177
end)
178178

@@ -229,7 +229,7 @@ local function gravitySystem(dt)
229229
local meta = zone:getMetadata()
230230
local multiplier = meta and meta.GravityMultiplier or 1
231231

232-
local upwardForce = hrp.AssemblyMass * workspace.Gravity * (1- multiplier)
232+
local upwardForce = hrp.AssemblyMass * workspace.Gravity * (1 - multiplier)
233233
hrp:ApplyImpulse(Vector3.new(0, upwardForce * dt, 0))
234234
end
235235
end

docs/usage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ local zone = Zone.new({
9696
```
9797

9898
### Single & Dynamic Creation
99-
For maximum perfomance, use `isDynamic = true` for zones attached to moving platforms, vehicles, or projectiles.
99+
For maximum performance, use `isDynamic = true` for zones attached to moving platforms, vehicles, or projectiles.
100100
```lua
101101
local trainZone = Zone.fromPart(workspace.TrainCarriage, {
102102
isDynamic = true,
@@ -146,7 +146,7 @@ dynamicZone:sync()
146146
Groups are collections of entities (Parts, Models, Players, etc.).
147147

148148
### Specialized Groups
149-
QuickZone provides built-in abstractions that automatically handle player lifecyles.
149+
QuickZone provides built-in abstractions that automatically handle player lifecycles.
150150

151151
```lua
152152
-- Tracks all players in the server
@@ -166,7 +166,7 @@ local projectiles = Group.new({
166166
```
167167

168168
### Managing Entities
169-
You can add Players, BaseParts, Models, Attachments, Bones, or custom tables with a Position.
169+
You can add Players, BaseParts, Models, Attachments, Bones, or custom tables with a Position.
170170

171171
```lua
172172
-- Add a Model (tracks the PrimaryPart or Pivot)
@@ -363,8 +363,8 @@ Perform instant checks without using the Observer/Group pattern.
363363
-- Get all zones at a specific vector
364364
local zones = QuickZone:getZonesAtPoint(Vector3.new(10, 5, 0))
365365

366-
-- Get the group an entity belongs to
367-
local group = QuickZone:getGroupsOfEntity(workspace.Part)
366+
-- Get the groups an entity belongs to
367+
local groups = QuickZone:getGroupsOfEntity(workspace.Part)
368368
```
369369

370370
---

0 commit comments

Comments
 (0)