浏览代码

add circular ring

/develop/cubewars/splashdamage
Andrew Cohen 4 年前
当前提交
43cba853
共有 2 个文件被更改,包括 302 次插入65 次删除
  1. 365
      Project/Assets/ML-Agents/Examples/CubeWars/Prefabs/CubeWarArea.prefab
  2. 2
      Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs

365
Project/Assets/ML-Agents/Examples/CubeWars/Prefabs/CubeWarArea.prefab


m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0

m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &4842597515579046
Transform:
m_ObjectHideFlags: 0

- {fileID: 4430881949022472}
- {fileID: 4534035899647546}
m_Father: {fileID: 4688212428263696}
m_RootOrder: 0
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1457179540742082
GameObject:

m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0

m_LocalPosition: {x: 0, y: 12.3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7827906445720098920}
- {fileID: 4842597515579046}
- {fileID: 5561786740530964387}
- {fileID: 4419274671784554}

m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0

- {fileID: 3256731534312223688}
- {fileID: 3331463254605917318}
m_Father: {fileID: 4688212428263696}
m_RootOrder: 1
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
--- !u!65 &8758597709486190942
BoxCollider:

myLaser: {fileID: 137581301857655464}
shockwave: {fileID: 8498712796297175102}
myBody: {fileID: 3253209279871271058}
--- !u!64 &1807569721161141282
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6555295647043807867}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 3
m_Convex: 0
m_CookingOptions: 14
m_Mesh: {fileID: 7899092891819194326, guid: 8c40fb8b2e877464087ee4920444a812, type: 3}
--- !u!1 &8498712796297175102
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 5561786740530964387}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &8776954551934106372
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6300367493673524447}
- component: {fileID: 5160720440466408329}
- component: {fileID: 8353323014505377600}
- component: {fileID: 5496980372163301799}
m_Layer: 0
m_Name: Cylinder
m_TagString: ground
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6300367493673524447
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8776954551934106372}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: -0.061, z: 0}
m_LocalScale: {x: 1.8, y: 0.01, z: 1.8}
m_Children: []
m_Father: {fileID: 7827906445720098920}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &5160720440466408329
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8776954551934106372}
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &8353323014505377600
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8776954551934106372}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: acba6bf2a290a496bb8989b42bf8698d, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!64 &5496980372163301799
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8776954551934106372}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 3
m_Convex: 1
m_CookingOptions: 14
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1001 &26445713038023263
PrefabInstance:
m_ObjectHideFlags: 0

m_Modification:
m_TransformParent: {fileID: 4688212428263696}
m_Modifications:
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: area
value:
objectReference: {fileID: 1819751139121548}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: largeAgent
value:
objectReference: {fileID: 5707177387575911509}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: role
value: 2
objectReference: {fileID: 0}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: MaxStep
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_LocalPosition.x

- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_RootOrder
value: 4
value: 5
objectReference: {fileID: 0}
- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}

propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: area
value:
objectReference: {fileID: 1819751139121548}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: largeAgent
value:
objectReference: {fileID: 5707177387575911509}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: role
value: 2
objectReference: {fileID: 0}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: MaxStep
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8083776131842293165, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_Name

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 8267498eac5574215b37d92bf7e3f621,
objectReference: {fileID: 5022602860645237092, guid: 4295d3fcd852848f0ac0b99643e68b49,
type: 3}
- target: {fileID: 8136121708948342693, guid: 4dd35c7381e7445c99133a34a83e21db,
propertyPath: m_Constraints
value: 112
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4dd35c7381e7445c99133a34a83e21db, type: 3}
--- !u!4 &6276286609035264789 stripped

m_PrefabInstance: {fileID: 2827145199770347644}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &3015436747102925682
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 4688212428263696}
m_Modifications:
- target: {fileID: -927199367670048503, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_Name
value: ArenaWalls
objectReference: {fileID: 0}
- target: {fileID: -927199367670048503, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_TagString
value: wall
objectReference: {fileID: 0}
- target: {fileID: -927199367670048503, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalPosition.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalScale.x
value: 60
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalScale.y
value: 40
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_LocalScale.z
value: 60
objectReference: {fileID: 0}
- target: {fileID: -1504981713932161579, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 66163cf35956a4be08e801b750c26f33, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8c40fb8b2e877464087ee4920444a812, type: 3}
--- !u!4 &7827906445720098920 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -4216859302048453862, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
m_PrefabInstance: {fileID: 3015436747102925682}
m_PrefabAsset: {fileID: 0}
--- !u!1 &6555295647043807867 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: -927199367670048503, guid: 8c40fb8b2e877464087ee4920444a812,
type: 3}
m_PrefabInstance: {fileID: 3015436747102925682}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &3079494898195000690
PrefabInstance:
m_ObjectHideFlags: 0

m_Modification:
m_TransformParent: {fileID: 4688212428263696}
m_Modifications:
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: largeAgent
value:
objectReference: {fileID: 5707177387575911509}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: area
value:
objectReference: {fileID: 1819751139121548}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: role
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: MaxStep
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_LocalPosition.x

- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_RootOrder
value: 3
value: 4
objectReference: {fileID: 0}
- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}

propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: largeAgent
value:
objectReference: {fileID: 5707177387575911509}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: area
value:
objectReference: {fileID: 1819751139121548}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: role
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: MaxStep
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8083776131842293165, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_Name

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 8267498eac5574215b37d92bf7e3f621,
objectReference: {fileID: 5022602860645237092, guid: 4295d3fcd852848f0ac0b99643e68b49,
type: 3}
- target: {fileID: 8136121708948342693, guid: 4dd35c7381e7445c99133a34a83e21db,
propertyPath: m_Constraints
value: 112
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4dd35c7381e7445c99133a34a83e21db, type: 3}
--- !u!4 &5634558950757305706 stripped

m_Modification:
m_TransformParent: {fileID: 4688212428263696}
m_Modifications:
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: area
value:
objectReference: {fileID: 1819751139121548}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: largeAgent
value:
objectReference: {fileID: 5707177387575911509}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: MaxStep
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_LocalPosition.x

- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_RootOrder
value: 2
value: 3
objectReference: {fileID: 0}
- target: {fileID: 8081094897351109481, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}

propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: area
value:
objectReference: {fileID: 1819751139121548}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: largeAgent
value:
objectReference: {fileID: 5707177387575911509}
- target: {fileID: 5940168890073970201, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: MaxStep
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8083776131842293165, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_Name

type: 3}
propertyPath: m_Model
value:
objectReference: {fileID: 11400000, guid: 8267498eac5574215b37d92bf7e3f621,
objectReference: {fileID: 5022602860645237092, guid: 4295d3fcd852848f0ac0b99643e68b49,
type: 3}
- target: {fileID: 8705827100738960883, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 07bc6a1dce9694cc49527eb9bc3f0345, type: 2}
- target: {fileID: 8136121708948342693, guid: 4dd35c7381e7445c99133a34a83e21db,
type: 3}
propertyPath: m_Constraints
value: 112
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4dd35c7381e7445c99133a34a83e21db, type: 3}
--- !u!4 &4419274671784554 stripped

2
Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs


m_AgentRb.velocity = Vector3.zero;
HealthStatus();
float smallRange = 50f * m_MyArea.range;
float smallRange = 30f * m_MyArea.range;
transform.position = new Vector3(Random.Range(-smallRange, smallRange),
2f, Random.Range(-smallRange, smallRange))
+ area.transform.position;

正在加载...
取消
保存