ahmed0saber

Moving cube in Python

May 7th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. from ursina import *
  2.  
  3. def update():
  4.     cube.x+=time.dt*0.5
  5.    
  6. app=Ursina()
  7. cube=Entity(model="cube",color=color.rgb(0,0,100))
  8. app.run()
Advertisement
Add Comment
Please, Sign In to add comment