Is it possible to make a platform that has gravity that pull the player in unity 2d?

I’m using raycast lines detector but his raycast line only detect horizontal platform I’m trying to make a diagonal platform that’s has gravity that pull the player make the player think that is in a horizontal platform. is it possible to do that?

Yes, it is always possible.