Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ursina import *
- def update():
- global speed
- cube.x+=time.dt*speed
- if abs(cube.x)>3:
- speed*=-1
- app=Ursina()
- speed=1
- cube=Entity(model="cube",color=color.rgb(0,0,100),scale=(2,2,2))
- camera.position=(-3,2,-25)
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment