Vetra - Every shot lands where physics says it should

Hello, Fellow Scripters & Developers,

I’ve been working on a projectile simulation module for Roblox for a while now, and I’m excited to finally put it out there , introducing Vetra (v6.2.2)!

So what is it actually?

Vetra is a physics-driven bullet system built for games where shots actually need to feel like shots. If you’ve ever wanted your weapons to have real weight behind them without spending weeks wiring it all together yourself, this is for you.

See it in action first!

Before anything else here’s a showcase of what Vetra actually looks like running in a real project:

Watch the Showcase
Or if you’d rather just jump in and feel it yourself:
Try the Test Place
Or maybe you want to get the test place?
**Vetra.rbxl** (703.0 KB)
Note: Testplace use Vetra that is outdated

But what makes it different?

Vetra has tons of physics feature, that what makes it different, below is the features:

This is honestly the part I’m most proud of. Vetra comes with a whole suite of physics behaviours you can mix and match:

Drag :
bullets actually slow down over distance using real ballistic drag models (G1, G7, and more). Tie damage to velocity and you get natural falloff for free, no extra system needed.

Bounce :
full restitution support with per-material coefficients, normal perturbation, and corner-trap detection so bullets don’t get stuck in geometry.

Magnus effect :
lateral force on spinning projectiles, great for rifles with twist rates.

Gyroscopic drift :
long-range yaw from spin precession, adds a ton of authenticity to sniper builds.

6DOF aerodynamics :
lift, pitching moment, roll/yaw damping, the works.

Tumble :
bullets destabilise on speed loss or pierce, chaotic drag multiplier kicks in.

Fragmentation :
cone-distributed child bullets on pierce. Shotguns, explosive rounds, you name it.

Homing :
frame-by-frame steering with configurable strength, duration, and acquisition radius.

Pierce :
multi-surface penetration with momentum modelling and exit-point detection.

All of it is modular. You only add what you actually need.

But wait, there’s more beyond physics too!

Physics isn’t all Vetra brings to the table. There’s a bunch of other stuff that makes it a proper production-ready system:

Hitscan :
need instant hit resolution with zero per-frame cost? Hitscan skips kinematics entirely — single frame, done. Full pierce, bounce, and signal support still works, you don’t lose anything.

Supersonic / subsonic profiles :
different drag, restitution, and scatter behaviour depending on which speed regime the bullet is in. Your rifles and pistols can feel genuinely different without you having to build separate systems for each.

Trajectory provider :
not happy with the built-in kinematics? Swap it out entirely. Feed in any custom position curve you want and Vetra will use that instead.

LOD & spatial partitioning :
bullets are tiered into HOT / WARM / COLD based on interest points. Far-away bullets cost almost nothing. Close ones stay precise. It scales automatically.

Parallel physics :
raycasts are distributed across Roblox Actors. Frame time scales better from 25 bullets all the way to 20,000. You’re not going to tank your server with a firefight.

Typed BehaviorBuilder :
build-time validation catches misconfigured behaviors before they cause runtime bugs. The output is frozen, so nothing mutates it mid-flight.

VetraNet, Networking Layer

This totally answers your question if you’re looking for a ballistics system with an opt-in Networking. (totally optional)

Multiplayer shooters are hard to get right on the trust side. VetraNet is my answer to that.

Instead of blindly trusting the client or doing a full server-side raycast that ignores lag, VetraNet reconstructs the bullet trajectory server-side and checks whether the client’s claimed hit is physically plausible given the simulation. A fabricated hit from a position the bullet never visited gets rejected. Legitimate hits on laggy connections stay valid. You get configurable tolerance windows, rate limiting, origin validation, serialization, drift correction, and cosmetic replication — all over a single RemoteEvent, impressive isn’t it? hha!

Quick test:

Grab it from the Roblox Creator Store: Install Vetra

Incase Roblox Creator Store doesnt work:
Vetra_V7.rbxm (189.7 KB)

local Vetra = require(game.ReplicatedStorage.Vetra)
local BulletContext = Vetra.BulletContext

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

Signals.OnHit:Connect(function(context, result, velocity)
    if result then
        print("Hit", result.Instance.Name)
    end
end)

local Behavior = Vetra.BehaviorBuilder.Sniper():Build()

local context = BulletContext.new({
    Origin    = muzzlePosition,
    Direction = direction,
    Speed     = 900,
})

Solver:Fire(context, Behavior)

That’s a full sniper bullet with physics in under 20 lines, pretty simple.

Version: V7.0.0

Currently! , Vetra is at V7.0.0 , next version is on planning. Planning :
– Tighter Validation on VetraNet
– VetraNet might get a high receive, this issue will be fixed ASAP if it’s validated.
– Drop your suggestions, Im running out of ideas.

Alternatives to Vetra
Vetra is a library that made by me, assisted by AI. I cant guarantee if theres no bug or performance issue.

SwiftCast - Simple, fast and easy projectiles!
Projectile+ | An all-in-one projectile system [1.0]
FastCast2 - An improved version of FastCast with Parallel scripting, more extensions, and statically typed, A powerful modern projectile library

Documentation & Source Code

Full documentation lives at Documentation, there are guides on physics, networking, performance tuning, and benchmarks.

Source code: Github
MIT licensed, so use it however you like.

Vetra - Every shot lands where physics says it should
Note: This Library was half - assisted with AI.

54 Likes

This looks very promising! Would it be posible for you to uncopylock the place?

2 Likes

Sure, I can do that, Currently as of 1 April 2026, The creator store link to install vetra currently doesnt work, a rbxm file of Vetra will be uploaded ASAP.

19:21 01/04/2026.

Changes: Fix Readme , Changed Test Place to be Uncopylocked, Included rbxm.

2 Likes

This is very promising!
I’ll be using this in my milsim game for realistic ballistics and combat, this is a very useful resource.

3 Likes

As long as it’s good, I honestly couldn’t care less, this library seems awesome, and the fact that you said it instead of denying makes it better

5 Likes

Can you add support for this:

1 Like

How can they add support for a feature that has not even been released yet?

1 Like

Not native in english so my wording might have been weird

I’m asking if it’s possible or useless/not possible for whatever the reason would be

Plus I’ve personally went back on some project and got them ready to work with the new update

1 Like

Heya There! Batch - raycast is not possible as of 08 April 2026, Because roblox doesnt have this.
Once it does, It’ll be included as a feature to Vetra!

And thank you for using Vetra! , Appreciate it!

2 Likes

Heya devs! , Vetra V6.4.1 is here.

Nothing new , but I fixed an interesting issue here! and it might help.

Blockcast are able to tunnel and does not sweep the part it starts with, so in rare case, tunneling can happen with blockcast.

But why this doesnt apply to raycast? Answer:
Well, Raycast is a single line, it can also tunnel but just a lot rare than blockcast, blockcast starts with a size params too, meanwhile raycast doesnt.

This code DOES not use Parallel Vetra, because CastFunction is not supported through Parallel.

local Vetra = require(game.ReplicatedStorage.Vetra)

local BulletContext = Vetra.BulletContext.new({
	Origin = workspace.Start.Position,
	Direction = workspace.Start.Position - workspace.End.Position,
	Speed = 150
})

local Solver = Vetra.new()

for i = 1,500 do
	Solver:Fire(BulletContext,
	{
		CastFunction = function(origin, direction, params)
			local BoxZ    = 0.01
			local dirUnit = direction.Unit
				-- Pull center back so front face is flush with origin (no blind zone)
			local center  = origin - dirUnit * (BoxZ / 2)
			local size    = Vector3.new(0.2, 0.2, BoxZ)
			local cframe  = CFrame.lookAt(center, center + direction)

			return workspace:Blockcast(cframe, size, direction, params)
		end,
		VisualizeCasts = true,
		MinSegmentSize = .001,
		AdaptiveScaleFactor = 1.2,
		HighFidelityFrameBudget = 500,
		RaycastParams = RaycastParams.new(),
		BulletMass = .01,
		Gravity = Vector3.new(0,0.01,0),
		HighFidelitySegmentSize = 0,
	})
	task.wait(.1)
end

Showcase of the issue:

So as you see! The red part, doesnt get detected by the blockcast!
This apply to raycast or blockcast or other casts aswell!

Changelogs:

– Update docs
– Warned about this issue.
– Update FAQ

4 Likes

For anyone having issues with vetranet server authorative, or have questions that are not covered in FAQ.
Feel free to contact me :slight_smile:

3 Likes

Vetra V6.5 Is finally here!

Sorry if it takes longer than you expected , but here’s what new in the V6.5:
OnFire signal, This does not use FireSafe, instead it use firesync, so you can mutate the behavior and context.

BulletContext:GetCast() I figured that you need this method to access cast everywhere.

All Signals that were FireSafe are switched Fire method This allow much more control and flexibility for you over cast and context, you could modify behavior, change speed directly.

Type complete (Partially) You now got the auto complete on Vetra, The cast, Bullet context.

Removed HitValidator and Validation Folder

Also fixed Terminate wasnt working because of FireSafe.

BulletContextConfig.UserData , Now the config .new() accept UserData.

Parallel Improvements:

Fire-and-forget (FF) cast path, Cast with no callbacks and FireTravelEvents = false now step autonomously via PreSimulation:ConnectParallel
Full RaycastParams forwarded to Actors

I will also need your suggestion on whether you actually need the behavior builder.
Since some say it’s a bloat and unnecessary.

Get it here :
Vetra V6.5.rbxm (299.3 KB)

3 Likes

There is this floating point issue where the server and client have slightly different hit positions, causing the bounce angle to be different for both casts.



I’m wondering if maybe there’s a way to fix it as it also happens with fastcast which I use

3 Likes

Hello funeral103, This cant be fixed due to the floating point which is unavoidable.
Both simulations are running on different vm’s, so it’s very unlikely to have them matched.

3 Likes

Hi , i am trying out the networking part of Vetra and i don’t know why but BehaviorRegistry doesnt exist inside of VetraNet. I would appreciate it if you could help me, cause right now idk if im the one doing things wrong.

Edit : it exists as its own module but VetraNet.BehaviorRegistry doesnt.

1 Like

Hello, So for behavior registry, you could require it directly from the module children.

3 Likes

Couldn’t use newParallel for ages, plugged it in AI and found out there’s an issue with this line not unpacking correctly:

local ShouldSkip, StepDelta,
	NewLODFrameAccumulator, NewLODDeltaAccumulator,
	NewSpatialFrameAccumulator, NewSpatialDeltaAccumulator,
	NewIsLOD, FiredAccumulatedDelta =
		ParallelPhysics.ResolveLODAndSpatialSkip(State, EffectiveDelta, CurrentPositionForSkip)

Fixed with:

local SkipResult =
	ParallelPhysics.ResolveLODAndSpatialSkip(State, EffectiveDelta, CurrentPositionForSkip)

local ShouldSkip                   = SkipResult.ShouldSkip
local StepDelta                    = SkipResult.StepDelta
local NewLODFrameAccumulator       = SkipResult.LODFrameAccumulator
local NewLODDeltaAccumulator       = SkipResult.LODDeltaAccumulator
local NewSpatialFrameAccumulator   = SkipResult.SpatialFrameAccumulator
local NewSpatialDeltaAccumulator   = SkipResult.SpatialDeltaAccumulator
local NewIsLOD                     = SkipResult.IsLOD
local FiredAccumulatedDelta        = SkipResult.FiredAccumulatedDelta

You probably forgot to update it since there’s a comment saying:
“Returns a LODResult table rather than multiple return values — the 8-value tuple was unwieldy at every call site.”

2 Likes

Ah thank you, I will fix this and release the new version.

1 Like

The vetra v6.5 has been slow and not optimized.

As a result of this I have been using and working on those approaches:

Opt-in map baking to avoid raycast in empty spaces (dda)
In addition to above, I do have plan to support dynamic transforms.

SharedTable write / read turns out to be pretty slow, buffers are used in the v6.6 to pack datas and read datas to avoid the SharedTable reading / writing.

Using Bolt as collision checking and raycast fallback. Wether this is faster than native raycast or slower, I havent checked and implented this one.

I will release this newer optimized version, rechecking docs, bugs in short time. Stay tuned fellow devs.

1 Like

Since server authority is now a thing, is it still worth using this? Server Authority does what this does (keeps client and server synced and prevents exploits, things land / happen where they should) and its just a toggle in workspace.

And when it comes to projectiles, why not just use projectile plus?

1 Like