A 2D shape consisting of straight lines that are joined to for a circuit.

learn more… | top users | synonyms

1
vote
1answer
96 views

2D World - How to represent my Game Objects graphically?

I want to code my own topdown 2D game with SFML+C++ that later shall have multiplayer functionality. Therefor I want to seperate the graphical and logical Parts of my game. All of my ingame Objects ...
1
vote
1answer
57 views

How can I determine “exact moment” of collision with ray casting?

I'm currently brainstorming how the physics for my game engine is going to be handled. It's top down and I'm thinking of using ray casting for collision detection. I've reached two potential problems ...
0
votes
1answer
42 views

Vertex ordering with THREEjs's exporter

I'm using THREEjs's exporter to export a 2D polygon plane. The resulting JSON gives me the vertices. I'm trying to properly order these vertices as to make the actual polygon shape, without luck. ...
0
votes
1answer
70 views

Moving a Polygon based on Camera position [JAVA]

I am in the process of implementing TMX Maps (made in Tiled) for my game. In Tiled, I can create polygons, which leaves a tag, containing the points. Loading in these points to a Polygon ...
-1
votes
1answer
1k views

Create Box2D and engine polygon Box2D body without sprite

Hey I have created my body using following code: (please read full description) Body polyBody; final BodyDef mBodyDef = new BodyDef(); mBodyDef.type = BodyDef.BodyType.DynamicBody; ...
1
vote
0answers
27 views

How to test which edge is going in and which edge is coming out in Weiler-Atherton Algorithm?

The basics of Weiler-Atherton Polygon Clipping Algorithm are: Start from the first edge which is going inside the clipping area. When an edge of a candidate/subject polygon enters the clipping area, ...
1
vote
0answers
55 views

2D Polygon Collision push direction with large polygons

I have a collision detection/resolution implementation that uses the Separating Axis Theorem. Detection and such works perfectly fine, as well as resolution for most objects/shapes in my game. ...
1
vote
0answers
98 views

Cubic bezier polygon clipping

I have a large cubic bezier defined 2D polygon area which I need to render in DX11 real-time to create as many 4096x4096 textures as needed. An average control point count would be around the 12k and ...
0
votes
0answers
34 views

Libgdx polygon ratating

I'm using polygons for collision detection. Here is the code: poly = new Polygon(verticies); poly.setOrigin(100,100); poly.setRotation(45); renderer.setColor(Color.GREEN); ...
0
votes
0answers
34 views

Blender to UDK 3 How to smooth Static Mesh

I've created a bed cover model for my small game and here is how it looks like in blender: http://imgur.com/T88Mnbs but whenever I import it to UDK it looks like this: http://imgur.com/OMXBno3 it ...
0
votes
0answers
28 views

Efficient point-in test on static Polygons

I have some convex 2D polygons that are static and I would like to create an efficient point in test for them. I'm pretty new to this area of study so I just want to make sure I haven't made an error ...
0
votes
0answers
87 views

Libgdx triangulation messing up triangles

I'm trying to triangulate a convex polygon. On the left are the triangulated polygons, while on the right is the convex polygon without triangulation. (both are wrong) but the one on the right is ...
0
votes
0answers
38 views

Locate point of collision for two moving lines

I am trying to implement a continuous collision detection system that checks collision between two polygons for a certain time step, concave or convex. It makes the simplification that the path ...