commit ff31dd9e2efe0316c4cdd3478c550501407a7a8b
parent 486690bdf476a4f73c7519c3c088a32091a461ac
Author: Andrew <andrewlaack1@gmail.com>
Date: Mon, 15 Apr 2024 10:06:00 -0500
Completed notes for cg w12
Diffstat:
9 files changed, 84 insertions(+), 1 deletion(-)
diff --git a/Asset.md b/Asset.md
@@ -0,0 +1,10 @@
+:unity: :cs331:
+# Asset
+
+CS 331 W12 L3
+
+## Notes
+
+**Definition:** Assets are all resources in untiy.
+
+
diff --git a/GameLoop.md b/GameLoop.md
@@ -0,0 +1,12 @@
+:unity: :cs331:
+# Unity Game Loop
+
+CS 331 W12 L3
+
+## Notes
+
+**Definition:** Each frame the loop function of each script is called.
+
+This is the same idea as animation which is giving motion to still images.
+
+See [[MonoBehaviour.md]] for more about update method.
diff --git a/GameObject.md b/GameObject.md
@@ -0,0 +1,7 @@
+#Game Object
+
+CS 331 W12 L3
+
+## Notes
+
+**Definition:** This is the data type of objects in the game. This is a broad class that has some built in functionallity.
diff --git a/Lighting.md b/Lighting.md
@@ -0,0 +1,20 @@
+:cs331: :unity:
+# Lighting
+
+CS 331 W12 L3
+
+## Notes
+
+### Light Options
+
+1. Point Light Source
+ * Intensity decreases over time (range param)
+ * Simulates a local light source from one point
+2. Directional
+ * This simulates a light source infinitely far away
+ * This also has a directional component and brightness component
+ * Our position has no effect on the light, but orientation does
+3. Spot Light
+ * Light comes out in a cone
+ * This means one small area has a circle of light
+ * This is different from a point light as it is directional
diff --git a/Math310.md b/Math310.md
@@ -6,3 +6,4 @@ This is the index for my main Math 310 notes.
# Main Links
[[Induction.md]]
+
diff --git a/MonoBehaviour.md b/MonoBehaviour.md
@@ -0,0 +1,14 @@
+:cs331: :unity:
+# Mono Behaviour
+
+CS 331 W12 L3
+
+## Notes
+
+**Definition:** Monobehaviour is the default inherited class for scripts which contains start and update.
+
+Each script contains code for a class that inherits from monobehaviour.
+
+The update function is used to control the [[GameLoop.md]]
+
+The start function is called a singular time when the object is instantiated.
diff --git a/Script.md b/Script.md
@@ -0,0 +1,9 @@
+:cs331: :unity:
+# Script
+
+CS 331 W12 L3
+
+## Notes
+
+**Definition:** Scripts are where custom code can be added to accompany gameobjects they are associated with.
+
diff --git a/Transform.md b/Transform.md
@@ -11,6 +11,7 @@ In Unity, we have a left handed coordinate system as oppossed to the standard ri
Additionally, each game object has its own local coordinate system that moves with the object. In this way Z becomes forward, X becomes right, and y becomes up with respect to positive values on said axis.
+The datatype used to represent position in 3d space is Vector3. Each x,y,z component is of datatype float.
See [[Quaternions.md]] for rotations.
diff --git a/Unity.md b/Unity.md
@@ -12,7 +12,6 @@ Unity is a popular game engine, no duh.
**Aggregation:** Unity uses aggregation by grouping assets together (nesting)
-
### Important Conceptual Ideas
[[Texture.md]]
@@ -23,8 +22,18 @@ Unity is a popular game engine, no duh.
[[Transform.md]]
[[Quaternions.md]]
+
### Components
[[MeshFilter.md]]
[[MeshRenderer.md]]
+[[Script.md]]
+
+### Other Unity Specifics
+
+[[Asset.md]]
+[[GameObject.md]]
+[[MonoBehaviour.md]]
+[[Lighting.md]]
+[[GameLoop.md]]