Barbed Wire Builder in Unity — Dev Log

My project requires a lot of barbed wire, but you should be able to interact with the wire. The first problem was how to create something that doesn’t cost too much to render.

Cross-Plane quads with normals

Thanks to Al from GameDevHQ for the idea. A segment of barbed wire consists of horizontal and vertical planes. Each plane shows a flat material of the barbed wire. Since the material contains texture-data such as normals, then it gives a pretty good illusion of being 3D. Still a little work needed but the prototype looks pretty good.

Custom Spline

The next problem/feature was I want to be able to run the barbed wire along a custom spline. So, first step, created a custom editor to allow the level designer to create splines.

Spawning along the Spline

This is where I’ve finished today, but I think it’s looking promising. The level designer can select the prefab they want to use to follow the spline and Press the custom inspector ‘Spawn Objects’ (or clear if they want to start again). This builds something approach a barbed wire spline.

Spawn on a spline

The spawn positioning algorithm is too basic at the moment, but it feels like it is do-able.

A very basic barbed wire

Let’s see what tomorrow brings.




Unity, VR, Enterprise and .Net Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Scrum with Sunsama

How Kubernetes is used in Industry?

I/0 Algorithm

Setting up SublimeText for Competitive Programming for C++ on Ubuntu & Windows

Auto-generated documentation with AAD authentication and granular role management

Want to Learn to Code? Our Instructors Have Some Advice

Must-have VSCode extensions for Python IDE

5 Steps To Run Xcode 9Beta alongside 8

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Marsh

Paul Marsh

Unity, VR, Enterprise and .Net Developer

More from Medium

3D to 2D part 2 - Updating the player

How to upgrade materials to URP in Unity 2021.2 and above

Galaxy Shooter: From Prototype to Production

Animating Sprites In Unity