Code Monkey home page Code Monkey logo

platonic-solids-pygame's Introduction

Platonic-Solids-pygame

Render and manipulate orthographic 3D wireframe objects

rotations are calculated using quaterions translations are not handled properly yet (translations are relative to the screen instead of the axes)

vertices are lists of 3 numbers edges are pairs vertex indices

All solids are controlled together

positive half axis is dashed x-axis is red y-axis is green z-axis is blue

controls:

lshift:     wasdqe rotate the whole world while held
lctrl:      wasdqe rotate the shapes about the axis when held

w/s:        controls x-axis rotation
a/d:        controls y-axis rotation
q/e:        controls z-axis rotation
space:      rotates in all three axes while held

up/down:    controls position relative to x-axis
left/right: controls position relative to y-axis
PgUp/PGDwn: controls position relative to z-axis

0:          resets worl
1:          resets shape positions/orientation but not world rotation

platonic-solids-pygame's People

Contributors

daniel-j-anderson-dev avatar jacob-anderson-dev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.