java - Can't set PolygonShape vertices Box2D -


i'm using box2d in java libgdx. i'm trying create triangle using polygonshape. upon calling setvertices code crashes. there no error code, or stack trace me follow.

excuse lengthy numbers. exact numbers being calculated. routine more complicated this, that's needed solve problem here.

polygonshape shape = new polygonshape(); //app crashes on call set. shape.set(new float[] { 0.26666668f, -0.043010756f, -0.008602151f,     -0.18064517f, -0.18064517f, -0.26666668f }); 

i've ensured vertices in counter-clockwise order. these points define simple convex triangle.

could tell me i'm doing wrong here?

probably because crashes in native code portion. chance upgraded newer version of gdx replacing libgdx jar's not replacing libgdx.so?


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -