Skip to main content

Installation

Vetra is one folder and one require. There is no build step, no external dependency to fetch, and nothing to configure before your first shot.


Requirements​

PlatformRoblox (Luau, --!strict throughout)
LocationReplicatedStorage, both client and server must be able to require it
DependenciesNone external. Ships with one bundled internal module, VeSignal.
VersionThis documentation covers Vetra V7.0.0.

Roblox Studio (drag & drop)​

  1. Get the Vetra model from the Creator Marketplace (or open the .rbxm release).
  2. Drag the Vetra folder into ReplicatedStorage.
  3. Require it from any script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Vetra = require(ReplicatedStorage.Vetra)

That's it. The folder is self-contained, everything under Vetra (Core, Physics, Occupancy, Parallel, and the builders) is required internally.


Verify It Works​

Drop this in a LocalScript under StarterPlayerScripts and press Play. You should see a hit print in the output when the ray finds the ground.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Vetra = require(ReplicatedStorage.Vetra)

local Solver = Vetra.new()
local Signals = Solver:GetSignals()

Signals.OnHit:Connect(function(context, result)
print(result and ("Hit " .. result.Instance:GetFullName()) or "Expired")
end)

local camera = workspace.CurrentCamera
local context = Vetra.BulletContext.new({
Origin = camera.CFrame.Position,
Direction = camera.CFrame.LookVector,
Speed = 300,
})

Solver:Fire(context, Vetra.BehaviorBuilder.Pistol():Build())

If it prints a hit, you're installed correctly. Head to Get Started to build a real weapon, or jump straight into the Features.


Where the Pieces Live​

You require the top-level Vetra and reach everything through it, you never require submodules directly:

AccessWhat it is
Vetra.new()The serial solver
Vetra.newParallel()The parallel (Actor) solver
Vetra.BehaviorBuilderFluent behavior builder + presets
Vetra.BulletContextPer-shot context constructor
Vetra.EnumsNamed constants (DragModel, TerminateReason, ...)
Vetra.StaticOccupancy / Vetra.DynamicOccupancy / Vetra.VoxelBakerOccupancy grids
Vetra.OccupancyChunksSaving a baked grid into the place file

Full signatures are in the API Reference.