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$

closed as off-topic by Discrete lizard, David Richerby, vonbrand, Kyle Jones, hengxin Aug 8 '18 at 15:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about computer science, within the scope defined in the help center." – Discrete lizard, David Richerby, vonbrand, Kyle Jones, hengxin
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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.