we opened unity for the fist time by finding the files in a different location on the pc because the college computers didn't know where the unity editor was installed and then we created a blank 3D core project this gives us a blank space with only a camera and a light in it that we can freely look around in and move objects as well as scale them; We then added a sphere with a rigid body 3d and pressed play this gave the ball physics so it fell according to its weight and because our camera had nothing on it it just looked at one spot while the ball fell of screen.
we added coliders to all our objects that we want to be solid so that other objects with a collider can't pass through them, this allows us to create different slopes and shapes for our ball to hit if we combine this with a rigid body we can make some dominos fall over when the ball hits them with enough momentum, however i didnt add these to my rude goldburge machine as i didnt have time nor did i know where i could fit them in as mine mostly consists of falling and bouncing.
I made folders for the different types of assets i would include in my Rude Goldburg machine so that it doesn't get too cluttered and i know where to find anything if i need it. this saved a lot of time during the creation of my machine as i never had to search through all the folders to find a model or a material.
i imported some assets that we have worked on in the past and placed them around my rude Goldberg machine to create some ascetic. this was easy to do as you can just drag models into the assets list at the bottom then all you have to do is drag and drop them into your 3d space to make them appear, if i wanted to you could add a mesh collider to this so that the ball can interact with the model and not fall through it
we added a spring modifier to a block and put a sphere above it to create a spring we could then attach the spring modifier to another object, i didnt use this much during my machine as i found the physical material more practical when trying to make things bounce high instead of the spring that doesnt do to much.
added a hinge to a flap that rotates when hit with the ball, i included this into my Rude Goldburg machine nearing the start so it would slow the ball preparing it for the jumps and speed it needs to gain to complete the rest of the machine.
in visual studio we made a script to move reverse the offset and the rotation using a input and if statements with some quaternion to euler conversions to make the rotation of the camera work properly
After a bit i started looking at more convienient ways to move the camera and one of those ways was the orbit object method that allows you to move your camera freely around a object in the game and set a radius and speed using variables; i did this using the help of a youtube short that i found that i then changed and edited to better fit my needs for my rude goldburg machine. Now the camera is able to rotate around the player using the OrbitObject function.
i started making the layout for my rude Goldberg machine using materials and plains that are all available in the base unity, we added rigid body's to our ball so that gravity can affect it, I also made a flap at the start to decrease the speed so it would go right at the next bit witch all had physical materials on them making them bouncy to land on, at the very start i also have a thors hammer i imported from a lesson from Jayne on unwrapping i gave this a spring modifier so it just bounces at the start of the rude Goldberg machine,
To stop the Object list getting too out of hand and cluttered with duplicates i made empty objects to store a group of platforms as child objects that would be in order of start to end, and seperate objects for platforms with different materials (bouncy).
this script doesnt currently work and im trying to figure out why as it doesnt give me any errors in visual studio so i assume it may be an issue with the rigid body or other colider settings on my objects.
Joe helped me make my collision script way easier because there was only once object that could collide with my platforms. this makes a unique kind of effect when landing of the platform that after a short while it will destroy because of the 1f that i added at the end of the brackets to add a delay.
i updated my camera script so that it will change target once it reaches the first balls end destination on the y value then it will start to rotate the next object and turn the kinematic off on that 2nd object so it can start moving. i then implemented a temporary part of the script that i can use to skip ahead in the rudegold burg machine so that i don't have to watch it through every time when making small changes.
i uploaded a video to youtube to document the finished result of my Rude Goldburg machine, where i show the whole machine so that it can be marked.
If i had mroe time then i would fix my camera script because when i was finishing the last few things before handing in my project i somehow broke my scripts so that it couldnt check the position correctly and so in the video i pressed space to move the camera onto the next object creating the ilusion that it works correctly.
i would also fix my text script that is surposed to apear once the camera reaches the end so it enables the text so it is visible and apears at the top of your screen.