Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Locking a 3D Object to 6 snowflake angles

Author
Message
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 9th Mar 2011 18:53
Imagine a Snowflake, a hexagon. I need to move all of my objects in 6 directions. Now rotate the snowflake in 3 more directions to make a Icosahedron sort of shape. The snowflake can also move at those directions. But the object is a sphere. It is like locking atoms together. I can't afford to use more polygons than a sphere, else I might aim the object towards 6 points. I don't know where to put those 6 points, and how to rotate them to the other points. I also need diagonal movement to be equal to X or Y movement, sometimes it is bigger.

Neuro Fuzzy
19
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 9th Mar 2011 20:01
O.o what? Are we talking 2d or 3d?

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 9th Mar 2011 20:26 Edited at: 9th Mar 2011 22:21
Sort of both. You have a choice of 6 angles per sync, but if two particles collide the 6 angles are rotated like a coin spinning on its edge, but in steps of another hexagon. Accidentally drew 8 rotations, need 6.



Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 9th Mar 2011 21:44 Edited at: 9th Mar 2011 21:46
If somebody just knows what the angles are for overlapped Hexagons like that. So I can have a dim like this pseudo code..

Dim HexagonAngles(12,A,B,C)
If angle = 1
Point object current Object X-a,Y-b,Z-c

Endif

Duke E
17
Years of Service
User Offline
Joined: 10th Mar 2009
Location:
Posted: 10th Mar 2011 09:55 Edited at: 10th Mar 2011 11:17
Maybe something like this?
Assuming your example picture is looking from above (Y) the sphere.



Regards
Duke
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 10th Mar 2011 18:58
That's ace thanks!

Login to post a reply

Server time is: 2026-07-14 20:38:52
Your offset time is: 2026-07-14 20:38:52