Rotating cube

Idea: create a foundation block, constitute the basis of a Rubik's Cube on the basis of the box. Create three axes (X, Y, Z), each time one surface is rotated as needed, according to each coordinate plane have a value equal to the selected puncturing need to turn the box, the box will be required to bind to the corresponding rotation shaft, rotary shaft driven block after unbinding 0 (Ps: why create three-axis, rotation is possible because the binding object changes axis position, resulting in a second rotational direction is changed, with three shafts, each shaft a control rotational direction, the rotational direction of the direction does not change)

Create a base block blueprint object. Creating three axes.

 

Games begin creating three axes.

 

 

 Create a base block by variable length and breadth of three cycles, to build a cube.

 

 Create incident X-axis rotation, and then select the output value and choice Axis is right by two variables.

 

Construction of a rolling surface (location change for deletion of selected blocks)

 

 

 The rotation axis X

 

Lift the plane of rotation.

 

 

 Like the other two axes practices, modified to correspond to the shaft.

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/cdprojekt/p/11904697.html