Author Topic: Alien Runner W.I.P  (Read 65776 times)

Offline mxar

  • int
  • **
  • Posts: 78
    • View Profile
Re: Alien Runner W.I.P
« Reply #90 on: February 01, 2017, 03:32:17 pm »

The Alien Runner game uses a straight road which is based on Object3d planes.

In case  a developer needs to create a similar game with curved roads what the solution will be?

I'm trying to develop a method which creates a curved road.

The method will be something like this:

Object3D curvedPlane = createCurvedPlane(float innerRadius,float ouRadius,float angle,int quads)

This method is like the ExtendedPrimitives.createTube(float innerRadius, float outerRadius, float height, int quads)
but the height is equal to zero and the tube is not round but is drawn arount to an angle < 360 degrees.

Any idea to help me?

Thanks in Advance.