浏览代码

adjusted crawler joint and mass

/hh-develop-ragdoll-testing
HH 5 年前
当前提交
e05e152a
共有 6 个文件被更改,包括 72 次插入117 次删除
  1. 34
      Project/Assets/ML-Agents/Examples/Crawler/Prefabs/Crawler.prefab
  2. 93
      Project/Assets/ML-Agents/Examples/Crawler/Prefabs/DynamicPlatform.prefab
  3. 35
      Project/Assets/ML-Agents/Examples/Crawler/Prefabs/FixedPlatform.prefab
  4. 15
      Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerDynamicTarget.unity
  5. 10
      Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerStaticTarget.unity
  6. 2
      Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs

34
Project/Assets/ML-Agents/Examples/Crawler/Prefabs/Crawler.prefab


m_Anchor: {x: 0, y: -0.75, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: -0.0000039041042, y: 0.329996, z: 0}
m_ConnectedAnchor: {x: 0.000000014901161, y: 0.33000007, z: 0}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

m_Anchor: {x: 0, y: -0.75, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: 0.0000038295984, y: 0.3299957, z: -0.000000029802322}
m_ConnectedAnchor: {x: -0.000000044703484, y: 0.32999957, z: -0.000000029802322}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

m_Anchor: {x: 0, y: -0.75, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: -0.0000042170286, y: 0.32999632, z: 0}
m_ConnectedAnchor: {x: -0.000000014901161, y: 0.33000052, z: 0}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4845971000566026489}
serializedVersion: 2
m_Mass: 3
m_Mass: 2
m_Drag: 0.05
m_AngularDrag: 0.05
m_UseGravity: 1

m_Anchor: {x: 0, y: -0.5, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: -0.2828369, y: -0.1500001, z: 0.28284287}
m_ConnectedAnchor: {x: -0.28284273, y: -0.1500001, z: 0.28284284}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

spring: 0
damper: 0
m_AngularYLimit:
limit: 20
limit: 60
bounciness: 0
contactDistance: 0
m_AngularZLimit:

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4845971000943818050}
serializedVersion: 2
m_Mass: 3
m_Mass: 2
m_Drag: 0.05
m_AngularDrag: 0.05
m_UseGravity: 1

m_Anchor: {x: 0, y: -0.5, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: 0.2828369, y: -0.1500001, z: 0.28284264}
m_ConnectedAnchor: {x: 0.28284281, y: -0.1500001, z: 0.2828427}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

spring: 0
damper: 0
m_AngularYLimit:
limit: 20
limit: 60
bounciness: 0
contactDistance: 0
m_AngularZLimit:

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4845971001325249073}
serializedVersion: 2
m_Mass: 3
m_Mass: 2
m_Drag: 0.05
m_AngularDrag: 0.05
m_UseGravity: 1

m_Anchor: {x: 0, y: -0.5, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: -0.2828369, y: -0.1500001, z: -0.28284264}
m_ConnectedAnchor: {x: -0.28284281, y: -0.1500001, z: -0.2828427}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

spring: 0
damper: 0
m_AngularYLimit:
limit: 20
limit: 60
bounciness: 0
contactDistance: 0
m_AngularZLimit:

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4845971001327158050}
serializedVersion: 2
m_Mass: 3
m_Mass: 2
m_Drag: 0.05
m_AngularDrag: 0.05
m_UseGravity: 1

m_Anchor: {x: 0, y: -0.5, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: 0.2828369, y: -0.1500001, z: -0.28284287}
m_ConnectedAnchor: {x: 0.28284273, y: -0.1500001, z: -0.28284284}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

spring: 0
damper: 0
m_AngularYLimit:
limit: 20
limit: 60
bounciness: 0
contactDistance: 0
m_AngularZLimit:

m_Anchor: {x: 0, y: -0.75, z: 0}
m_Axis: {x: 1, y: 0, z: 0}
m_AutoConfigureConnectedAnchor: 1
m_ConnectedAnchor: {x: 0.000004246831, y: 0.32999602, z: 0.000000029802322}
m_ConnectedAnchor: {x: 0.000000029802322, y: 0.33000004, z: 0.000000029802322}
serializedVersion: 2
m_SecondaryAxis: {x: 0, y: 0, z: -1}
m_XMotion: 0

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4845971001715176661}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 2, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:

93
Project/Assets/ML-Agents/Examples/Crawler/Prefabs/DynamicPlatform.prefab


m_Modification:
m_TransformParent: {fileID: 6810587057221831324}
m_Modifications:
- target: {fileID: 4845971000000621469, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: 0.000000014901161
objectReference: {fileID: 0}
- target: {fileID: 4845971000000621469, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.y
value: 0.33000007
objectReference: {fileID: 0}
- target: {fileID: 4845971000245862049, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: -0.000000044703484
objectReference: {fileID: 0}
- target: {fileID: 4845971000245862049, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
- target: {fileID: 582459258423184605, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
propertyPath: m_ConnectedAnchor.y
value: 0.32999957
objectReference: {fileID: 0}
- target: {fileID: 4845971000281612791, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: -0.000000014901161
objectReference: {fileID: 0}
- target: {fileID: 4845971000281612791, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.y
value: 0.33000052
objectReference: {fileID: 0}
- target: {fileID: 4845971000566026490, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: -0.28284273
objectReference: {fileID: 0}
- target: {fileID: 4845971000566026490, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.z
value: 0.28284284
objectReference: {fileID: 0}
- target: {fileID: 4845971000943818055, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: 0.28284281
objectReference: {fileID: 0}
- target: {fileID: 4845971000943818055, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.z
value: 0.2828427
objectReference: {fileID: 0}
- target: {fileID: 4845971001325249074, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: -0.28284281
objectReference: {fileID: 0}
- target: {fileID: 4845971001325249074, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.z
value: -0.2828427
objectReference: {fileID: 0}
- target: {fileID: 4845971001327158055, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: 0.28284273
objectReference: {fileID: 0}
- target: {fileID: 4845971001327158055, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.z
value: -0.28284284
objectReference: {fileID: 0}
- target: {fileID: 4845971001622533708, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: 0.000000029802322
objectReference: {fileID: 0}
- target: {fileID: 4845971001622533708, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.y
value: 0.33000004
objectReference: {fileID: 0}
propertyPath: targetToLookAt
value:
objectReference: {fileID: 6817236684048233896}
- target: {fileID: 4845971001715176649, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: target

type: 3}
m_PrefabInstance: {fileID: 4573852208357529272}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7263906539984407900
--- !u!1001 &5411625862107797085
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2

- target: {fileID: 6084207059270429360, guid: e568400ebedb3474fac505995f12ed4a,
type: 3}
propertyPath: m_LocalPosition.y
value: -1.5
value: -1.507
objectReference: {fileID: 0}
- target: {fileID: 6084207059270429360, guid: e568400ebedb3474fac505995f12ed4a,
type: 3}

- target: {fileID: 6084207059270429360, guid: e568400ebedb3474fac505995f12ed4a,
type: 3}
propertyPath: m_LocalScale.x
value: 1.5167878
value: 1.7957102
value: 0.02530454
value: 0.029957818
value: 1.5167878
value: 1.7957102
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: e568400ebedb3474fac505995f12ed4a, type: 3}

35
Project/Assets/ML-Agents/Examples/Crawler/Prefabs/FixedPlatform.prefab


propertyPath: m_Name
value: DirectionIndicator
objectReference: {fileID: 0}
- target: {fileID: 2514443435243387629, guid: e568400ebedb3474fac505995f12ed4a,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6026464216722085689, guid: e568400ebedb3474fac505995f12ed4a,
type: 3}
propertyPath: transformToFollow

m_Modification:
m_TransformParent: {fileID: 4309919623019186}
m_Modifications:
- target: {fileID: 1141786540848836948, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4845971000000621469, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x

propertyPath: m_ConnectedAnchor.z
value: 0.28284284
objectReference: {fileID: 0}
- target: {fileID: 4845971000566026490, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: -0.2828369
objectReference: {fileID: 0}
- target: {fileID: 4845971000943818055, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: 0.2828369
objectReference: {fileID: 0}
- target: {fileID: 4845971001325249074, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: -0.2828369
objectReference: {fileID: 0}
objectReference: {fileID: 0}
- target: {fileID: 4845971001327158055, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_ConnectedAnchor.x
value: 0.2828369
objectReference: {fileID: 0}
- target: {fileID: 4845971001622533708, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}

type: 3}
propertyPath: m_Name
value: Crawler
objectReference: {fileID: 0}
- target: {fileID: 8742078559849259273, guid: 0456c89e8c9c243d595b039fe7aa0bf9,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 0456c89e8c9c243d595b039fe7aa0bf9, type: 3}

15
Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerDynamicTarget.unity


m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3504335519655176172, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_LocalScale.x
value: 1.5167868
objectReference: {fileID: 0}
- target: {fileID: 3504335519655176172, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_LocalScale.y
value: 0.02530454
objectReference: {fileID: 0}
- target: {fileID: 3504335519655176172, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_LocalScale.z
value: 1.5167868
objectReference: {fileID: 0}
- target: {fileID: 6810587057221831324, guid: 0058b366f9d6d44a3ba35beb06b0174b,
type: 3}
propertyPath: m_LocalPosition.x

10
Project/Assets/ML-Agents/Examples/Crawler/Scenes/CrawlerStaticTarget.unity


propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 982886372032617500, guid: 1b9d167a4e71146a883212e4f08bda88,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1508658031869535387, guid: 1b9d167a4e71146a883212e4f08bda88,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1b9d167a4e71146a883212e4f08bda88, type: 3}
--- !u!1001 &680193204

2
Project/Assets/ML-Agents/Examples/Crawler/Scripts/CrawlerAgent.cs


{
if (detectTargets)
{
foreach (var bodyPart in m_JdController.bodyPartsDict.Values)
foreach (var bodyPart in m_JdController.bodyPartsList)
{
if (bodyPart.targetContact && bodyPart.targetContact.touchingTarget)
{

正在加载...
取消
保存