Vertices

Dec 8, 2010 at 9:25 AM

Hi i used to be able to do this in 2.x but cant in 3.x

 

how do i access the Vertices of an fixture as i wish to be able play with them.

Developer
Dec 8, 2010 at 9:47 AM

In Farseer 3.0 different shapes can be bound to a fixture. You have to use:

((PolygonShape)fixture.Shape).Vertices

Of course this only works, if it is a polygon shape. You can get the shape type via: fixture.ShapeType