Skip to content

Commit

Permalink
Property adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hykudoru committed Dec 5, 2020
1 parent 8e59c3b commit 2477d6b
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 46 deletions.
8 changes: 8 additions & 0 deletions Drones/Assets/Drones/Demo.meta

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

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -413,16 +413,6 @@ PrefabInstance:
propertyPath: rollPitchSpeed
value: 28
objectReference: {fileID: 0}
- target: {fileID: 3893937143131440852, guid: 9feb64c7d592fb247ae0139596c5abc1,
type: 3}
propertyPath: tiltSpeed
value: 20
objectReference: {fileID: 0}
- target: {fileID: 3893937143131440852, guid: 9feb64c7d592fb247ae0139596c5abc1,
type: 3}
propertyPath: counterGravity
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3893937143131440853, guid: 9feb64c7d592fb247ae0139596c5abc1,
type: 3}
propertyPath: m_UseGravity
Expand All @@ -431,7 +421,7 @@ PrefabInstance:
- target: {fileID: 3893937143131440853, guid: 9feb64c7d592fb247ae0139596c5abc1,
type: 3}
propertyPath: m_Drag
value: 2
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4905939255208150088, guid: 9feb64c7d592fb247ae0139596c5abc1,
type: 3}
Expand Down Expand Up @@ -610,31 +600,6 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &658021518 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 3541209806302926730, guid: 9feb64c7d592fb247ae0139596c5abc1,
type: 3}
m_PrefabInstance: {fileID: 350319091}
m_PrefabAsset: {fileID: 0}
--- !u!95 &658021519
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 658021518}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 12a4648c937e0b044bf3e4de4eaf5cdb, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &679467664
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -936,7 +901,7 @@ RectTransform:
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -80, y: -20}
m_SizeDelta: {x: 160, y: 40}
m_SizeDelta: {x: 160, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1030152421
MonoBehaviour:
Expand Down Expand Up @@ -1384,7 +1349,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 80, y: -20}
m_SizeDelta: {x: 160, y: 40}
m_SizeDelta: {x: 160, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1530695168
MonoBehaviour:
Expand Down Expand Up @@ -1582,14 +1547,14 @@ MonoBehaviour:
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 10
m_MaxSize: 40
m_MaxSize: 25
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Reset
m_Text: Reset Drone
--- !u!222 &1643699587
CanvasRenderer:
m_ObjectHideFlags: 0
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions Drones/Assets/Drones/Drone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Drone : MonoBehaviour
Rigidbody drone;
DroneInput input;
Animator animator;
[SerializeField] float moveSpeed = 50f;
[SerializeField] float moveSpeed = 70f;
[SerializeField] float throttleSpeed = 50f;
[SerializeField] float yawSpeed = 360f;
[SerializeField] float tiltSpeed = 20f;
Expand Down Expand Up @@ -82,7 +82,7 @@ private void FixedUpdate()

private void LateUpdate()
{
float currentPropellerSpeed = Mathf.Clamp(thrust.sqrMagnitude, 0f, 10f);
animator.SetFloat("Thrust", currentPropellerSpeed);
float propellerSpeed = Mathf.Clamp(thrust.sqrMagnitude, 0f, 10f);
animator.SetFloat("Thrust", propellerSpeed);
}
}
24 changes: 22 additions & 2 deletions Drones/Assets/Drones/Prefabs/Drone_2_Prototype.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ GameObject:
- component: {fileID: 3893937143131440853}
- component: {fileID: 3893937143131440852}
- component: {fileID: 8390751280896578834}
- component: {fileID: 8879485278695513610}
m_Layer: 0
m_Name: Drone_2_Prototype
m_TagString: Untagged
Expand Down Expand Up @@ -239,10 +240,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: a28e953817a374a499e09183023a6fa0, type: 3}
m_Name:
m_EditorClassIdentifier:
moveSpeed: 50
moveSpeed: 70
throttleSpeed: 50
yawSpeed: 180
tiltSpeed: 25
tiltSpeed: 14
maxRollDeg: 28
maxPitchDeg: 28
maxTiltDeg: 28
Expand Down Expand Up @@ -278,6 +279,25 @@ MonoBehaviour:
m_DefaultActionMap: Drone
m_SplitScreenIndex: -1
m_Camera: {fileID: 0}
--- !u!95 &8879485278695513610
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3541209806302926730}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 12a4648c937e0b044bf3e4de4eaf5cdb, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &3541209806589185414
GameObject:
m_ObjectHideFlags: 0
Expand Down
2 changes: 1 addition & 1 deletion Drones/ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ EditorBuildSettings:
serializedVersion: 2
m_Scenes:
- enabled: 1
path: Assets/Drones/DroneScene.unity
path: Assets/Drones/Demo/Demo.unity
guid: 4e88f6cfc4dd463428fa880f1cdea980
m_configObjects: {}
3 changes: 3 additions & 0 deletions Drones/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ PlayerSettings:
preloadedAssets:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
Expand Down

0 comments on commit 2477d6b

Please sign in to comment.