This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Brandman73
Brandman73 presents ...

2020/5/18

3D rotatable cube

This cube is only made up of points so it might be hard to tell that it is a cube.
Use your mouse position to rotate it!

1151 views / 742 in the last 7 days

1 vote | 0 in the last 7 days

Tags: mouse simulation demo

Your browser is ignoring the <APPLET> tag.
EthanNobleEthanNoble

2020/5/18

Did you use a pre made helper class for the 3 dimensional engine or did you come up with the technique yourself? Really impressive I love it!
Brandman73Brandman73

2020/5/18

I came up with the engine myself, it uses a simple algorithm to find the x,y,z plot after rotating each point, in this case, eight points for a cube. If you want to know them, I'd be happy to comment them here.
EthanNobleEthanNoble

2020/5/20

That'd be cool, I'm just here trying to wrap my head around the concept and make up something myself.
Brandman73Brandman73

2020/5/20

The first thing to consider is how to plot in 3D, I simply plotted ( x , y + z ). This may cause a little problem in looks since the cube in the scenario is a little taller than it is wide, but it still works.

Want to leave a comment? You must first log in.

Who likes this?

EthanNoble