Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do the rollowing exercise: We want to make an arrow represent the relative position vector of the tennis ball with respect to the cricket ball.
Do the rollowing exercise:
We want to make an arrow represent the relative position vector of the tennis ball with respect to the cricket ball. That is the arrow's tail should be at the position of the cricket ball the white sphere and the tip should be at the position of the tennis ball the green sphere
main.py
GlowScript VPython
sphere posvector radius color color. whi
sphereposvector radius color color.
arrow pos vector axisvector colorco
What would be the pos of this arrow, whose tail is on the cricket ball the white sphere
What would be the axis of this arrow, so that the tip is on the tennis ball the green sphere
Using these values of pos and axis, change the last line of the program to make the red arrow point from the white cricket ball to the green tennis ball.
Run the program.
Self check: Examine the D display carefully. If the red arrow does not point from the white cricket ball to the green tennis ball, correct your program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started