Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Use arrow keys to "pull" object, translate keypresses to changes in X, Y, and Z rotation

$
0
0

I have a few questions: Which order is best for XYZ rotation, and how do I transform keypresses to "pull" an object (or some objects) down, up, left, or right? I tried making a perspective vector, but I had no idea what I was doing, and failed. Could someone perhaps attach some code of "pulling" a cube in certain directions by pressing the arrow keys? This would be incredibly useful for a 3-D Minecraft clone, rather than a 2-D version I decided to develop instead.


Viewing all articles
Browse latest Browse all 2896

Trending Articles