FANDOM


Introduction Edit

The DNA molecule can be represented by a double helix. This tutorial is to show how to create the well-known double helix that is the DNA molecule. This tutorial may require some knowledge of trigonometry.

Doublespiral

Double spiral

What are we going to do? Edit

We need 2 helixes that don't cross each other's paths. In order to do this, we need a way to define the X, Y and Z coordinates for every brick going up the helix.

The double helix is a lot like a spiral staircase. So, the vertical dimension rises constantly, while the horizontal dimensions keep twisting around in circles. If you can define that, you have your helixes.

Setup Edit

for( %i = 0 ; %i < 50 ; %i+=0.1 )
{


%posx = 10*mCos(%i);
%posz = 7.5*(%i);
%posy = 10*mSin(%i);

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = %posx SPC %posy SPC %posz;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };


%posx2 = -10*mCos(%i);
%posz2 = 7.5*(%i);
%posy2 = -10*mSin(%i);

%temp = new fxDTSBrick()
   {
    datablock = "brick1x1Data";
    position = %posx2 SPC %posy2 SPC %posz2;
    rotation = "0 0 0 0";
    colorID = "16";
    scale = "1 1 1";
    angleID = "0";
    colorfxID = "0";
    shapefxID = "0";
    isPlanted = 1;
   };


}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.