浏览代码

Changed angular limits of articulation joints for the articulated crawler to match configurable joints setup in classical crawler.

/PhysXArticulations20201
Vilmantas Balasevicius 5 年前
当前提交
c6cc7d28
共有 3 个文件被更改,包括 49 次插入41 次删除
  1. 80
      UnitySDK/Assets/ML-Agents/Examples/Crawler/Prefabs/Body.prefab
  2. 5
      UnitySDK/Assets/ML-Agents/Examples/Crawler/Scenes/ArticulatedCrawlerManualControl.unity
  3. 5
      UnitySDK/Assets/ML-Agents/Examples/Crawler/Scripts/ArticulatedCrawlerAgent.cs

80
UnitySDK/Assets/ML-Agents/Examples/Crawler/Prefabs/Body.prefab


m_GameObject: {fileID: 325742404748677628}
m_Enabled: 1
m_Mass: 3
m_ParentAnchorPosition: {x: -0.34, y: -0.16999994, z: -0.33999988}
m_ParentAnchorRotation: {x: 0, y: 0.3826835, z: 0, w: -0.9238795}
m_ParentAnchorPosition: {x: -0.33999988, y: -0.16999994, z: -0.34000006}
m_ParentAnchorRotation: {x: 0, y: 0.38268355, z: 0, w: -0.9238796}
m_AnchorPosition: {x: -0.34, y: -0.17, z: -0.34}
m_AnchorRotation: {x: 0, y: 0.3826835, z: 0, w: -0.9238795}
m_ComputeParentAnchor: 1

target: 0
targetVelocity: 0
m_YDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -20
upperLimit: 20
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

lowerLimit: -120
upperLimit: 120
lowerLimit: -60
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

m_GameObject: {fileID: 644931961852672207}
m_Enabled: 1
m_Mass: 1
m_ParentAnchorPosition: {x: -0.9852707, y: -0.1544462, z: -0.94548184}
m_ParentAnchorRotation: {x: 0, y: 0.38268352, z: 0, w: 0.9238796}
m_ParentAnchorPosition: {x: -0.98527104, y: -0.1544462, z: -0.9454821}
m_ParentAnchorRotation: {x: 0, y: 0.38268355, z: 0, w: 0.92387974}
m_AnchorPosition: {x: -0.62, y: -0, z: -0.82}
m_AnchorRotation: {x: 0, y: 0.38268346, z: 0, w: 0.9238795}
m_ComputeParentAnchor: 1

m_SwingZ: 0
m_Twist: 1
m_XDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -150
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

m_GameObject: {fileID: 1161340060229406722}
m_Enabled: 1
m_Mass: 3
m_ParentAnchorPosition: {x: -0.34, y: -0.16999994, z: 0.33999988}
m_ParentAnchorRotation: {x: 0, y: -0.3826834, z: 0, w: -0.9238796}
m_ParentAnchorPosition: {x: -0.33999994, y: -0.16999994, z: 0.3400001}
m_ParentAnchorRotation: {x: 0, y: -0.38268343, z: 0, w: -0.92387974}
m_AnchorPosition: {x: -0.34, y: -0.17, z: -0.34}
m_AnchorRotation: {x: 0, y: 0.3826835, z: 0, w: -0.9238795}
m_ComputeParentAnchor: 1

target: 0
targetVelocity: 0
m_YDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -20
upperLimit: 20
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

lowerLimit: -120
upperLimit: 120
lowerLimit: -60
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

m_GameObject: {fileID: 2787186158660950569}
m_Enabled: 1
m_Mass: 1
m_ParentAnchorPosition: {x: -0.98527056, y: -0.1544462, z: -0.9454818}
m_ParentAnchorRotation: {x: 0, y: 0.38268346, z: 0, w: 0.9238795}
m_ParentAnchorPosition: {x: -0.9852709, y: -0.1544462, z: -0.94548184}
m_ParentAnchorRotation: {x: 0, y: 0.38268352, z: 0, w: 0.9238796}
m_AnchorPosition: {x: -0.62, y: -0, z: -0.82}
m_AnchorRotation: {x: 0, y: 0.38268346, z: 0, w: 0.9238795}
m_ComputeParentAnchor: 1

m_SwingZ: 0
m_Twist: 1
m_XDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -150
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

m_GameObject: {fileID: 3030804272900157282}
m_Enabled: 1
m_Mass: 3
m_ParentAnchorPosition: {x: 0.34, y: -0.16999994, z: 0.33999988}
m_ParentAnchorRotation: {x: 0, y: -0.9238795, z: 0, w: -0.3826835}
m_ParentAnchorPosition: {x: 0.33999988, y: -0.16999994, z: 0.34000006}
m_ParentAnchorRotation: {x: 0, y: -0.9238796, z: 0, w: -0.38268355}
m_AnchorPosition: {x: -0.34, y: -0.17, z: -0.34}
m_AnchorRotation: {x: 0, y: 0.3826835, z: 0, w: -0.9238795}
m_ComputeParentAnchor: 1

target: 0
targetVelocity: 0
m_YDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -20
upperLimit: 20
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

lowerLimit: -120
upperLimit: 120
lowerLimit: -60
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

m_GameObject: {fileID: 5133504824428693191}
m_Enabled: 1
m_Mass: 1
m_ParentAnchorPosition: {x: -0.9852709, y: -0.1544462, z: -0.9454819}
m_ParentAnchorRotation: {x: 0, y: 0.38268352, z: 0, w: 0.9238796}
m_ParentAnchorPosition: {x: -0.98527104, y: -0.1544462, z: -0.94548225}
m_ParentAnchorRotation: {x: 0, y: 0.38268355, z: 0, w: 0.92387974}
m_AnchorPosition: {x: -0.62, y: -0, z: -0.82}
m_AnchorRotation: {x: 0, y: 0.38268346, z: 0, w: 0.9238795}
m_ComputeParentAnchor: 1

m_SwingZ: 0
m_Twist: 1
m_XDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -150
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

m_GameObject: {fileID: 7016729938009860807}
m_Enabled: 1
m_Mass: 1
m_ParentAnchorPosition: {x: -0.98527056, y: -0.1544462, z: -0.9454818}
m_ParentAnchorRotation: {x: 0, y: 0.38268346, z: 0, w: 0.9238795}
m_ParentAnchorPosition: {x: -0.9852709, y: -0.1544462, z: -0.94548184}
m_ParentAnchorRotation: {x: 0, y: 0.38268352, z: 0, w: 0.9238796}
m_AnchorPosition: {x: -0.62, y: 0, z: -0.82}
m_AnchorRotation: {x: 0, y: 0.38268346, z: 0, w: 0.9238795}
m_ComputeParentAnchor: 1

m_SwingZ: 0
m_Twist: 1
m_XDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -150
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

m_GameObject: {fileID: 7191674892111358465}
m_Enabled: 1
m_Mass: 3
m_ParentAnchorPosition: {x: 0.34000006, y: -0.16999994, z: -0.33999988}
m_ParentAnchorRotation: {x: 0, y: 0.9238796, z: 0, w: -0.3826834}
m_ParentAnchorPosition: {x: 0.33999994, y: -0.16999994, z: -0.3400001}
m_ParentAnchorRotation: {x: 0, y: 0.92387974, z: 0, w: -0.38268343}
m_AnchorPosition: {x: -0.34, y: -0.17, z: -0.34}
m_AnchorRotation: {x: 0, y: 0.3826835, z: 0, w: -0.9238795}
m_ComputeParentAnchor: 1

target: 0
targetVelocity: 0
m_YDrive:
lowerLimit: -120
upperLimit: 120
lowerLimit: -20
upperLimit: 20
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

lowerLimit: -120
upperLimit: 120
lowerLimit: -60
upperLimit: 0
stiffness: 0
damping: 0
forceLimit: 3.4028235e+38

5
UnitySDK/Assets/ML-Agents/Examples/Crawler/Scenes/ArticulatedCrawlerManualControl.unity


propertyPath: m_ParentAnchorPosition.z
value: 0.34000003
objectReference: {fileID: 0}
- target: {fileID: 6571351125315617548, guid: 1661ce2a8a3cdfd3480c3d24bddd72f2,
type: 3}
propertyPath: m_Immovable
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7027398816889156176, guid: 1661ce2a8a3cdfd3480c3d24bddd72f2,
type: 3}
propertyPath: m_ParentAnchorPosition.x

5
UnitySDK/Assets/ML-Agents/Examples/Crawler/Scripts/ArticulatedCrawlerAgent.cs


// For starting position, make a random orientation
Quaternion rotation = Quaternion.identity;
rotation.SetLookRotation(Random.onUnitSphere * 10.0f + position, Vector3.up);
Vector3 randomViewPos = Random.onUnitSphere * 10.0f + position;
randomViewPos.y = position.y; // Look at the height of body center
rotation.SetLookRotation(randomViewPos, Vector3.up);
m_JdController.Reset();

正在加载...
取消
保存