So guys recently i had an interview, in which the interviewer asked me a question.
Question was can we access gravity without using rigid body component on cube. I'm begginer so this got me confused.
So guys recently i had an interview, in which the interviewer asked me a question.
Question was can we access gravity without using rigid body component on cube. I'm begginer so this got me confused.
It would help if you specified which context. Is this in a particular game engine, library, or API?
It's a good question for beginners, I think. I like questions with an “it depends” answer, since it forces people to explain more of what they know.
If you're using an engine like Unity or Unreal, understanding how their physics system works is pretty important.
Rather than answering it directly, I suggest you search the docs on the engines and libraries specifically. You'll probably learn a lot more that way.