What is the equation for a spiral path in 3D? [closed]

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.

closed as off-topic by Discrete lizard♦, David Richerby, vonbrand, Kyle Jones, hengxinAug 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.

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

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