Question: Done in VPython. Web VPython 3 . 2 from visual import * x = vector ( 1 , 0 , 0 ) y = vector

Done in VPython.
Web VPython 3.2
from visual import *
x = vector(1,0,0)
y = vector(0,1,0)
z = vector(0,0,1)
xaxis = cylinder(pos = vector(0,0,0), axis = x, color = color.red, radius =0.2, length =20)
yaxis = cylinder(pos = vector(0,0,0), axis = y, color = color.green, radius =0.2, length =20)
zaxis = cylinder(pos = vector(0,0,0), axis = z, color = color.blue, radius =0.2, length =20)
object = sphere(pos=vector(10,10,10), radius=0.5, color=color.red, opacity =1)
t =0
dt =0.01
while t <10:
rate(100)
t = t + dt
object.opacity = object.opacity -0.001
pointing = arrow(pos=vector(0,0,0), axis=object.pos, shaftwidth=0.3)
*Task : Alter your code so that after the object fades out, it fades back in again at a different location in three dimensional space. Teleportation! (which is not physics, but it is fun.) If possible, try to choose the new location to be esthetically pleasing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!