Skip to main content

Dev Blog 1: Populating a Looping Spline Track

While working on a challenge for my upcoming game U Complete Me I was faced with the challenge of procedurally generating unique forest race tracks for racing drones. At face value It seemed rather complex but its actually Incredibly simple.

I downloaded Surge from the Unity asset store and created a looping spline with 8 points arranged roughly in a circle.

Through code I scale and rotate these spline points by a seeded random amount creating a unique path. The next thing I did was spawn obstacles along the path for the player to avoid. I did this by moving a empty game object along the spline in increments, each increment I move it to the left or right by a clamped random amount and ray-cast downwards to get a point on the ground. I then instantiate a new obstacle at that point. I repeat this a specific amount based off the approximate length of the spline. The resulting track looks good but needed something to define the edges. The edging stones were placed in a similar way to the obstacles but without the randomization.

Finally after adding a delay and a challenge start zone I am left with this : 

In the next blog post I'll talk about how I am implementing the game-play for this challenge.


  1. Poker Room at The Planet Hollywood Casino & Resort
    The Planet 대구광역 출장샵 Hollywood Casino 영천 출장마사지 & Resort offers the best in 경주 출장샵 gaming, dining 경상남도 출장샵 and entertainment from the 고양 출장마사지 top resorts in the country. Book your room now to enjoy the


Post a Comment

Popular posts from this blog

You Complete Me is coming to Steam early access

Yep! you heard correctly You Complete Me is coming to steam early access this September! We've got a trailer coming in a couple weeks but for now here's a couple of development screenshots to show our progress. We are now feature complete for the September launch and now its time to work on the art and shader's to make it look Awesome! This building was my first try at procedural generation of buildings after a lot of tweaking they are looking a lot better now but I am gonna hold off on showing them until the game is more finalized and the trailer is released.