|
|
|
|
|
|
Assert.AreEqual(-1, castOutput.RayOutputs[0].HitTagIndex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[Test] |
|
|
|
public void TestCreateDefault() |
|
|
|
{ |
|
|
|
SetupScene(); |
|
|
|
var obj = new GameObject("agent"); |
|
|
|
var perception = obj.AddComponent<RayPerceptionSensorComponent3D>(); |
|
|
|
|
|
|
|
Assert.DoesNotThrow(() => |
|
|
|
{ |
|
|
|
perception.CreateSensors(); |
|
|
|
}); |
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |