You are walking on a floor, minding your own business

And then suddenly. An object appears in front of you.


Below you can find the code sample and the ability to share your own code.

Use 'GlowScript Offline' if you do not want to install any software

Web VPython 3.2
floor = box(pos=vector(0,-0.1,0),size=vector(.2,24,24), axis=vector(0,1,0), texture=textures.wood)
cone(pos=vector(2,0,0), axis=vector(0,1,-.3), color=color.blue, size=vector(2,1,1))

A strange encounter Code Sample

I made some changes to the gyroscope and added some features that allow the user to manipulate the variables.

It also records the trail of the rotation so you can see the changes as they are recorded. Additionally there are arrows that demonstrate the different planes.

X,Y,Z