This commit is contained in:
ntr committed 2023-07-18 23:11:15 +10:00
1 parent 437db96756
commit 3ad4b5ca2e
5 files changed
+20 -3

No files matched your search

-1
View File
@@ -95,7 +95,6 @@ public class ShipControls : MonoBehaviour, ShipInput.IMovementActions {
rigidBody.rotation = Quaternion.RotateTowards(transform.rotation, aim.transform.rotation, step); rigidBody.rotation = Quaternion.RotateTowards(transform.rotation, aim.transform.rotation, step);
} }
void UpdateCamera() { void UpdateCamera() {
// there's some hokey scaling that went on with the old input // there's some hokey scaling that went on with the old input
// we were originally using // we were originally using
+1
View File
@@ -15,6 +15,7 @@ public class ShipPhysics : MonoBehaviour {
// Debug.DrawRay(contact.point, contact.normal, Color.white); // Debug.DrawRay(contact.point, contact.normal, Color.white);
// } // }
Debug.Log("mag" + collision.relativeVelocity.magnitude);
if (collision.relativeVelocity.magnitude > maxDmg) { if (collision.relativeVelocity.magnitude > maxDmg) {
Debug.Log("Ddddestroyed by" + collision.gameObject.name); Debug.Log("Ddddestroyed by" + collision.gameObject.name);
ship.Respawn(); ship.Respawn();
+1 -1
View File
@@ -7,8 +7,8 @@
<ui:VisualElement name="Middle" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0);" /> <ui:VisualElement name="Middle" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0);" />
<ui:VisualElement name="Bottom" style="flex-grow: 0; background-color: rgba(0, 0, 0, 0.26); flex-direction: column; align-items: stretch; justify-content: flex-end; color: rgb(255, 255, 255); width: 33%; align-self: center;"> <ui:VisualElement name="Bottom" style="flex-grow: 0; background-color: rgba(0, 0, 0, 0.26); flex-direction: column; align-items: stretch; justify-content: flex-end; color: rgb(255, 255, 255); width: 33%; align-self: center;">
<ui:VisualElement name="upper" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0); flex-direction: row; justify-content: space-between; align-items: auto; width: auto; align-self: stretch; flex-shrink: 0;"> <ui:VisualElement name="upper" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0); flex-direction: row; justify-content: space-between; align-items: auto; width: auto; align-self: stretch; flex-shrink: 0;">
<ui:Label tabindex="-1" text="Speed" display-tooltip-when-elided="true" name="speed" style="align-self: flex-start; align-items: auto;" />
<ui:Label tabindex="-1" text="Time" display-tooltip-when-elided="true" name="timer" style="align-self: flex-end; align-items: auto;" /> <ui:Label tabindex="-1" text="Time" display-tooltip-when-elided="true" name="timer" style="align-self: flex-end; align-items: auto;" />
<ui:Label tabindex="-1" text="Speed" display-tooltip-when-elided="true" name="speed" style="align-self: flex-start; align-items: auto;" />
</ui:VisualElement> </ui:VisualElement>
<ui:VisualElement name="sectors" style="flex-grow: 0; background-color: rgba(0, 0, 0, 0); flex-direction: row; align-self: stretch; align-items: stretch; justify-content: space-between;"> <ui:VisualElement name="sectors" style="flex-grow: 0; background-color: rgba(0, 0, 0, 0); flex-direction: row; align-self: stretch; align-items: stretch; justify-content: space-between;">
<ui:Label tabindex="-1" text="32.0" display-tooltip-when-elided="true" class="yellow" /> <ui:Label tabindex="-1" text="32.0" display-tooltip-when-elided="true" class="yellow" />
@@ -0,0 +1,16 @@
{
"MonoBehaviour": {
"Version": 4,
"EnableBurstCompilation": true,
"EnableOptimisations": true,
"EnableSafetyChecks": false,
"EnableDebugInAllBuilds": false,
"DebugDataKind": 1,
"EnableArmv9SecurityFeatures": false,
"CpuMinTargetX32": 0,
"CpuMaxTargetX32": 0,
"CpuMinTargetX64": 0,
"CpuMaxTargetX64": 0,
"OptimizeFor": 0
}
}
+2 -1
View File
@@ -134,7 +134,8 @@ PlayerSettings:
vulkanEnableCommandBufferRecycling: 1 vulkanEnableCommandBufferRecycling: 1
loadStoreDebugModeEnabled: 0 loadStoreDebugModeEnabled: 0
bundleVersion: 0.1 bundleVersion: 0.1
preloadedAssets: [] preloadedAssets:
- {fileID: 11400000, guid: 020903acd8b50dd45a683fb9312ba7af, type: 2}
metroInputSource: 0 metroInputSource: 0
wsaTransparentSwapchain: 0 wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1 m_HolographicPauseOnTrackingLoss: 1