Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera fix #13

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Assets/Content/3D/Boneless.fbx
Binary file not shown.
106 changes: 106 additions & 0 deletions Assets/Content/3D/Boneless.fbx.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Content/3D/Materials/Base.mat
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 0, b: 0, a: 1}
- _Color: {r: 0, g: 0.088175535, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
20 changes: 20 additions & 0 deletions Assets/PreventRotation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PreventRotation : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void LateUpdate()
{
Quaternion q = transform.rotation;
q.eulerAngles = new Vector3(q.eulerAngles.x, q.eulerAngles.y, 0);
transform.rotation = q;
}
}
11 changes: 11 additions & 0 deletions Assets/PreventRotation.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Assets/Scenes/2D_EMG_Car.unity
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ GameObject:
- component: {fileID: 281134571}
- component: {fileID: 281134576}
- component: {fileID: 281134575}
- component: {fileID: 281134577}
m_Layer: 0
m_Name: Car
m_TagString: Player
Expand Down Expand Up @@ -672,6 +673,18 @@ BoxCollider2D:
serializedVersion: 2
m_Size: {x: 1.9490845, y: 3.6636}
m_EdgeRadius: 0
--- !u!114 &281134577
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 281134570}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2dc7848c2ebfa8941898d8c2d87d5f8c, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &508934891
GameObject:
m_ObjectHideFlags: 0
Expand Down
Loading