Hallo
Im Forum 3D Area habe ich schon nachgefragt und dort wurde mit empfohlen hier zu fragen
Also ich mache gerade ein kleines Spiele Projekt da ich selber Cube und mich gefragt habe warum machst du das nichtmal in Blender?
Also dabei wurde mir dieser Link gegeben: http://blenderartists.org/forum/show...BIX-CUBE-GAME&
Dort steht in einem Post folgendes:
No, it's impossible without python, you need to use a ton of variables to control the exact direction of each cube (basically emulate matrices, make a 3x3 cube and store: [rot1x,rot1y,rot2x,rot2y,rot3x,rot3y] that would control ONE row to make 3 rows you'd want to store:
GameLogic.Row1 = [rot1x,rot1y,rot2x,rot2y,rot3x,rot3y]
GameLogic.Row2 = [rot1x,rot1y,rot2x,rot2y,rot3x,rot3y]
GameLogic.Row3 = [rot1x,rot1y,rot2x,rot2y,rot3x,rot3y]
that wouldn't NEED to be done (you could just use 18 variables =X but that would be the best way.
Theoretically I know exactly how I'd script a game like that, too bad I'm not joining your team =P if you need a script post it in my thread.
Edit:
Then you'd use pi:
pi = 3.14
to get 90 degrees you'd use:
left = pi/2
right = -pi/2
then you'd set it so each time you rotate it adds 1 having 4 rotations for each axis: to have a 180 rot on the X it would be 2
meaning if your cube was:
OOO
OOO
OOO
and you wanted
OXO
XOX
OXO
you'd need to do some advanced tweakings to the lines below:
GameLogic.Row1 = [rot1x,rot1y,rot2x,rot2y,rot3x,rot3y]
GameLogic.Row2 = [rot1x,rot1y,rot2x,rot2y,rot3x,rot3y]
GameLogic.Row3 = [rot1x,rot1y,rot2x,rot2y,rot3x,rot3y]
This could get tricky. But just tweaking the values will do nothing, you'll need to find a way to import IPOs for rotations into python and interact with the lists to extract each cube from the list and apply the rotation IPO, or you could do all the and follow 9(squared) empties (using get/setOrientation)
Either way you'll need great python knowledge
Leider habe ich keinen Plan von Phyton würde es aber gerne lernen und so Könnte mir jemand das Script erklären und vll beshreiben wie ich es einbauen muss?