1
$\begingroup$

I am developing games in Unity 3D. Currently, I am trying to place 3D objects in 3D space in a spiral pattern that looks like one of 2 the strands in a pair of the DNA (helix) spiral pattern.

Would anyone please show me the equation for 3D spiral patterns, which should involve X, Y, and Z coordinate ?

Thanks.

$\endgroup$
  • 1
    $\begingroup$ How is this a question about computer science? $\endgroup$ – David Richerby Jul 5 '18 at 16:43
1
$\begingroup$

I have just found this correct answer on the web (by someone else):

A helix is a circle that moves up with time. Hence, the equations for one helix are:

x(t) = sin t

y(t) = cos t

z(t) = t

A double helix include two helices that are offset by half a turn. So, the equations for the second helix would then be :

x(t) = sin t

y(t) = cos t

z(t) = t + \pi

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.