List of usage examples for com.badlogic.gdx.graphics.g3d.model.skeleton SkeletonJoint SkeletonJoint
SkeletonJoint
From source file:com.xoppa.android.loaders.model.g3d.G3dxLoader.java
License:Apache License
private static SkeletonJoint readSkeletonJoint(Chunk jointChunk) { SkeletonJoint joint = new SkeletonJoint(); joint.name = jointChunk.readString(); joint.position.x = jointChunk.readFloat(); joint.position.y = jointChunk.readFloat(); joint.position.z = jointChunk.readFloat(); joint.rotation.w = jointChunk.readFloat(); joint.rotation.x = jointChunk.readFloat(); joint.rotation.y = jointChunk.readFloat(); joint.rotation.z = jointChunk.readFloat(); joint.scale.x = jointChunk.readFloat(); joint.scale.y = jointChunk.readFloat(); joint.scale.z = jointChunk.readFloat(); int count = jointChunk.readInt(); for (int i = 0; i < count; i++) { SkeletonJoint child = readSkeletonJoint(jointChunk); child.parent = joint;/*from w w w.j a va 2 s. c o m*/ joint.children.add(child); } return joint; }