grid-sensor icon indicating copy to clipboard operation
grid-sensor copied to clipboard

Detectable Game Objects not working with 2D gameobjects

Open SandaruwanFdo opened this issue 3 years ago • 7 comments

image image

Detectable Game Objects not working with 2D gameobjects. what am I missing?

SandaruwanFdo avatar Aug 30 '22 17:08 SandaruwanFdo

Detectable Game Objects not working with 2D gameobjects. what am I missing?

Yeah, sorry,, that's expected behavior though. Please see readme page: "I debated with myself if I should add support for 2D physics, but decided against it in the end. The reason being that the typical use case for 2D physics is platformer games. Those tend to require pretty high resolution observations though. Using camera sensors should generally be the better option for platformers. "

mbaske avatar Sep 03 '22 06:09 mbaske

I read it now. Do you have any solution for Top Down games?

SandaruwanFdo avatar Sep 03 '22 15:09 SandaruwanFdo

You could either use 3D physics or implement the detection code yourself - that is mapping your object positions to grid coordinates, like I did with the "maze explorer" example project in the repo.

mbaske avatar Sep 03 '22 16:09 mbaske

Thank you for your response. Do you intend to provide a solution for that in your sensor in the future?

SandaruwanFdo avatar Sep 03 '22 17:09 SandaruwanFdo

No, I have nothing planned for the time being.

mbaske avatar Sep 04 '22 14:09 mbaske

object positions to grid coordinates Can you provide a some examples or a video tutorial? "maze explorer" is a bit complex for me. I am a stranger to ml-agents

SandaruwanFdo avatar Sep 15 '22 12:09 SandaruwanFdo

Hi, I don't have any docs besides what's in the repo's readme. If you're totally new to ml-agents, I'd suggest looking into the example projects first. They are pretty basic and helped me a lot when I was starting with the ml-agents. https://github.com/Unity-Technologies/ml-agents/tree/main/Project/Assets/ML-Agents/Examples

mbaske avatar Sep 25 '22 08:09 mbaske