浏览代码

adjust default settings

/hh-develop-gridsensor-tests/static
HH 4 年前
当前提交
c0bcb416
共有 5 个文件被更改,包括 83 次插入88 次删除
  1. 83
      Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerGRAVEYARD.unity
  2. 72
      Project/Assets/ML-Agents/Examples/SharedAssets/Prefabs/PlayerCubeWithGun.prefab
  3. 2
      Project/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Projectile.prefab
  4. 2
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/AgentCubeGroundCheck.cs
  5. 12
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/AgentCubeMovement.cs

83
Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerGRAVEYARD.unity


m_Modification:
m_TransformParent: {fileID: 1740626765}
m_Modifications:
- target: {fileID: 1876700409, guid: 497c5a1fa56ff4204a66acfb42a8ebde, type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 2170513384791859414, guid: 497c5a1fa56ff4204a66acfb42a8ebde,
type: 3}
propertyPath: m_LocalPosition.x

m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 2170513384791859413, guid: 497c5a1fa56ff4204a66acfb42a8ebde,
type: 3}
propertyPath: m_Constraints
value: 80
objectReference: {fileID: 0}
- target: {fileID: 2170513384791859414, guid: 497c5a1fa56ff4204a66acfb42a8ebde,
type: 3}
propertyPath: m_LocalPosition.x

type: 3}
propertyPath: m_Name
value: PlayerCubeWithGun (1)
objectReference: {fileID: 0}
- target: {fileID: 2170513384791859417, guid: 497c5a1fa56ff4204a66acfb42a8ebde,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 497c5a1fa56ff4204a66acfb42a8ebde, type: 3}

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1870713534}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1876700408
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1876700409}
- component: {fileID: 1876700410}
m_Layer: 0
m_Name: Area Light (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1876700409
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1876700408}
m_LocalRotation: {x: -0, y: -0.7071068, z: 0.7071068, w: 0}
m_LocalPosition: {x: 0, y: 5, z: 2.06}
m_LocalScale: {x: 2, y: 0.5000005, z: 3}
m_Children: []
m_Father: {fileID: 1761726979}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!108 &1876700410
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1876700408}
m_Enabled: 1
serializedVersion: 8
m_Type: 2
m_Color: {r: 1, g: 0.9212542, b: 0.3915094, a: 1}
m_Intensity: 15
m_Range: 7
m_SpotAngle: 125
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!1 &1912426712
GameObject:
m_ObjectHideFlags: 0

72
Project/Assets/ML-Agents/Examples/SharedAssets/Prefabs/PlayerCubeWithGun.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1876700408
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1876700409}
- component: {fileID: 1876700410}
m_Layer: 0
m_Name: Area Light (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1876700409
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1876700408}
m_LocalRotation: {x: -0, y: -0.7071068, z: 0.7071068, w: 0}
m_LocalPosition: {x: 0, y: 5, z: 2.06}
m_LocalScale: {x: 2, y: 0.5000005, z: 3}
m_Children: []
m_Father: {fileID: 2170513384791859414}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!108 &1876700410
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1876700408}
m_Enabled: 1
serializedVersion: 8
m_Type: 2
m_Color: {r: 1, g: 0.9212542, b: 0.3915094, a: 1}
m_Intensity: 15
m_Range: 7
m_SpotAngle: 125
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!1 &2170513383024431815
GameObject:
m_ObjectHideFlags: 0

m_Children:
- {fileID: 2170513383808163269}
- {fileID: 2170513384717669916}
- {fileID: 1876700409}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}

m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_Constraints: 80
m_CollisionDetection: 3
--- !u!65 &2170513384791859412
BoxCollider:

2
Project/Assets/ML-Agents/Examples/SharedAssets/Prefabs/Projectile.prefab


m_Mass: 10
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0

2
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/AgentCubeGroundCheck.cs


public bool debugDrawGizmos;
public Collider[] hitGroundColliders = new Collider[3];
public Vector3 groundCheckBoxLocalPos = new Vector3(0, -0.52f, 0);
public Vector3 groundCheckBoxSize = new Vector3(0.99f, 0.02f, 0.99f);
public Vector3 groundCheckBoxSize = new Vector3(0.99f, 0.1f, 0.99f);
public bool isGrounded;
public float ungroundedTime; //amount of time agent hasn't been grounded
public float groundedTime; //amount of time agent has been grounded

12
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/AgentCubeMovement.cs


[Header("RIGIDBODY")] public float maxAngularVel = 50;
[Header("RUNNING")] public ForceMode runningForceMode = ForceMode.Impulse;
//speed agent can run if grounded
public float agentRunSpeed = 20;
public float agentRunSpeed = 10;
public float agentRunInAirSpeed = 10f;
public float agentRunInAirSpeed = 7f;
public float dashBoostForce = 10f;
public float dashBoostForce = 20f;
public ForceMode dashForceMode = ForceMode.Impulse;
public bool dashPressed;

//...and prevent the agent sliding around while grounded
//0 means it will instantly stop when grounded
//1 means no drag will be applied
public float agentIdleDragVelCoeff = .85f;
public float agentIdleDragVelCoeff = .9f;
[Header("GROUND POUND")]
public ForceMode groundPoundForceMode = ForceMode.Impulse;

public float spinAttackSpeed = 7f;
public float spinAttackSpeed = 20f;
public float agentRotationSpeed = 7f;
public float agentRotationSpeed = 35f;
[Header("JUMPING")]
//upward jump velocity magnitude

正在加载...
取消
保存