Question

In: Computer Science

USE C# to write this. 1.To the capsule, add a script called “MoveIt”. This will make...

USE C# to write this.

1.To the capsule, add a script called “MoveIt”. This will make the capsule move repeatedly between (3, 0, 0) and (-3, 0, 0), moving 1 unit per second, moving in the positive direction initially. [Note: The capsule should move toward (3,0,0) from its initial location of (0,1,0) and then move toward (-3,0,0), etc.]

2.To the yellow cube, add a script called “RotateIt”. This will make the cube rotate (30, 60, 90) per second.

3. Lastly, make a script called “ResizeIt”. This will make the purple sphere scale up to 4 times its original size, and then back down to its original size, repeatedly. It should increase in scale on all dimensions at 1 unit per second

Solutions

Expert Solution

1. MoveIt.cs

2. RotateIt.cs

3. ResizeIt.cs


Related Solutions

Add a sphere into Unity. write ONE C# script in Unity that does the following: Set...
Add a sphere into Unity. write ONE C# script in Unity that does the following: Set the sphere to a color of your choice. Start with growing the sphere’s scale at 0.0005/frame until its scale reaches 3, then shrink the sphere’s scale at the same rate until it reaches 1. Repeat. Sphere rotate around the origin in XY plane at radius of 5. position = transform.localPosition; position.x = radius * Mathf.Sin(Time.fixedTime); position.y = radius * Mathf.Cos(Time.fixedTime);
Make this simple C++ code add data into a file called "Medical Database" preferably an excel...
Make this simple C++ code add data into a file called "Medical Database" preferably an excel file. Also ask the patient for blood type and if they're donors. Anytime I run this code, it should add new data into the same Medical Database file. Use comments to explain what each line of code is doing. (including the one I have written) Side note: I'm trying to explain how data mining works in the medical field and the medical database file...
Write a script in C that will do the following : 1. Create the directory ZHW3....
Write a script in C that will do the following : 1. Create the directory ZHW3. 2. Verify that the directory is created by display all information related to the directory and not just the name of the directory. 3. Assume that the input from the command is used to validate password strength. Here are a few assumptions for the password string. • Length – minimum of 8 characters. • Contain alphabets , numbers , and @ # $ %...
Write a C++ function template to add two inputs and return their result. Make exceptions for...
Write a C++ function template to add two inputs and return their result. Make exceptions for Characters (such that sum of two characters is a character associated with sum of their ASCII) and String (such that sum of two strings is their concatenation)
Write the following Python script: Write a function called linsolve() that will be useful in categorizing...
Write the following Python script: Write a function called linsolve() that will be useful in categorizing and solving linear algebra problems. The function will have up to three parameters: • A required 2D array representing the coefficient matrix of a linear algebra equation, • A required 1D or 2D array representing the right-side constants of a linear algebra equations, and • An optional parameter used to determine which condition number to use in determining the condition of the system. The...
//Write in C++ //use this evote code and add File I/O operations (as specified in the...
//Write in C++ //use this evote code and add File I/O operations (as specified in the comments) to it. #include<iostream> using namespace std; int main() {int choice; int bezos = 0 , gates = 0 , bugs = 0 ; int vc = 0 ; do {    cout<<"\n\n\nEVOTE\n-----"    <<"\n1.Jeff Bezos    <<"\n2.Bill Gates    <<"\n3.Bugs Bunny" // 4. Print current tally [hidden admin option] // 5. Print audit trail [hidden admin option] // 6. mess with the vote...
Write a simple PHP script. In your script use all of the following: HTML, Javascript, and...
Write a simple PHP script. In your script use all of the following: HTML, Javascript, and PHP.
Write a SQL script to add another table to your database. Include these fields in your...
Write a SQL script to add another table to your database. Include these fields in your Product table: Field Name Description Data Type Sample Value ProductID Product ID integer 5 ProductName Product Name varchar(50) candle Description Product Description varchar(255) Bee’s wax candle picUrl Filename of the product’s picture varchar(50) candle.gif Price Product Price decimal 10.99           ProductID should be the Primary Key. It is an auto-increment field.           The Price field stores prices to 7 significant digits and to 2...
WRITE IN C++ Add to the Coord class Edit the provided code in C++ Write a...
WRITE IN C++ Add to the Coord class Edit the provided code in C++ Write a member function named      int distance2origin() that calculates the distance from the (x, y, z) point to the origin (0, 0, 0) the ‘prototype’ in the class definition will be      int distance2origin() outside the class definition             int Coord :: distance2origin() {                         // your code } _______________________________________________________________________________________________________ /************************************************** * * program name: Coord02 * Author: * date due: 10/19/20 * remarks:...
C++ Class involving duplication The goal is to make add() not allow duplicates. Bag<int> bag1; bag1.add(1);...
C++ Class involving duplication The goal is to make add() not allow duplicates. Bag<int> bag1; bag1.add(1); //ok bag1.add(2); //ok bag1.add(1); //ignore but do not break or terminate. The submission will go through but will not get added to array #include <iostream> #include <string> #include <vector> using namespace std; template<class T> class Bag { public: Bag(); int getCurrentSize() const; bool isEmpty() const; bool add(const T& new_entry); //Modify this bool remove(const T& an_entry); /** @post item_count_ == 0 **/ void clear(); /**...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT