浏览代码

Merge branch 'randomizers' into tutorial_sample_project

Get the latest from randomizers into tutorial branch.
/main
mohsen.k 4 年前
当前提交
66bf5c06
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 3
      com.unity.perception/Runtime/Randomization/Randomizers/SampleRandomizers/Randomizers/BackgroundObjectPlacementRandomizer.cs
  2. 3
      com.unity.perception/Runtime/Randomization/Randomizers/SampleRandomizers/Randomizers/ForegroundObjectPlacementRandomizer.cs

3
com.unity.perception/Runtime/Randomization/Randomizers/SampleRandomizers/Randomizers/BackgroundObjectPlacementRandomizer.cs


/// </summary>
protected override void OnIterationStart()
{
if (m_SpawnedObjects == null)
m_SpawnedObjects = new List<GameObject>();
for (var i = 0; i < layerCount; i++)
{
var seed = scenario.GenerateIterativeRandomSeed(i);

3
com.unity.perception/Runtime/Randomization/Randomizers/SampleRandomizers/Randomizers/ForegroundObjectPlacementRandomizer.cs


/// </summary>
protected override void OnIterationStart()
{
if (m_SpawnedObjects == null)
m_SpawnedObjects = new List<GameObject>();
var seed = scenario.GenerateRandomSeed();
var placementSamples = PoissonDiskSampling.GenerateSamples(
placementArea.x, placementArea.y, separationDistance, seed);

正在加载...
取消
保存