New answers tagged

1

I've been thinking about this problem for a long time and looked at some of the answers here and on other forums. I came up with the following idea: Suppose the circle has radius R. When looking at cases where the circle collides with the AABB , the center of the circle has to fall within a certain area around the AABB. The extreme cases are when the center ...


0

I know, the question was asked about 3 years ago, but never mind. I don't think the boolean operation is a good solution ant it is not required here. It is desined for other cases, to my mind. So, you created 2 splines. You should convert one of them, for instance rectangle, to editable spline, than Attach the second. Than apply Extrude modifier. The nested ...


1

Math.cos uses radians, not degrees. You want to go from 0 to 2* Math.PI You could do that like this: if (Keyboard.isKeyDown(Keyboard.KEY_D)) { if (i < 360) { //Convert to radians by multiplying by Math.PI*2f/360f float theta = Math.PI * 2f * (float) i / 360f; setX((float) (groundState.getX() + groundState.getRadius() * ...



Top 50 recent answers are included