Skip to content

Instantly share code, notes, and snippets.

@horstjens
Created May 6, 2024 14:15
Show Gist options
  • Save horstjens/23e9bc81240f593ec1032ebfd1252f39 to your computer and use it in GitHub Desktop.
Save horstjens/23e9bc81240f593ec1032ebfd1252f39 to your computer and use it in GitHub Desktop.
kilian vp
import vpython as vp
vp.arrow(axis=vp.vec(1,0,0),
color=vp.color.red)
vp.arrow(axis=vp.vec(0,1,0),
color=vp.color.green)
vp.arrow(axis=vp.vec(0,0,1),
color=vp.color.blue)
vp.label(text="x", pos=vp.vec(1.1,0,0))
vp.label(text="y", pos=vp.vec(0,1.1,0))
vp.label(text="z", pos=vp.vec(0,0,1.1))
player = vp.cone(pos=vp.vec(1,1,1),
axis=vp.vec(2,0,0),
color=vp.color.blue)
while True:
vp.rate(30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment