I made a something that resembles an object.
For now the generation is a bit of a mess, but I will have it sorted eventually.
Here’s the text file I fed to my program:
@bone.bsize 0.2 @bone.esize 0.3 bone up body bone up head 0.5 @bone.bsize 0.1 @bone.esize 0.075 goto body bone left shoulder.left 0.4 goto body bone right shoulder.right 0.4 @bone.bsize 0.15 @bone.esize 0.1 bone down arm.right 0.5 @bone.bsize 0.1 @bone.esize 0.075 bone down arm.right.fore 0.5 goto shoulder.left @bone.bsize 0.15 @bone.esize 0.1 bone down arm.left 0.5 @bone.bsize 0.1 @bone.esize 0.075 bone down arm.left.fore 0.5 gofrom body bone right hip.right 0.1 gofrom body bone left hip.left 0.1 @bone.bsize 0.18 @bone.esize 0.1 bone down leg.left 0.5 @bone.bsize 0.1 @bone.esize 0.05 bone down leg.left.fore 0.5 goto hip.right @bone.bsize 0.18 @bone.esize 0.1 bone down leg.right 0.5 @bone.bsize 0.1 @bone.esize 0.05 bone down leg.right.fore 0.5
Not very easy to work with at the moment, but I hope to fix that by splitting it into two different files: a template file and a parameter file.
The template file will store the in general information, like how to construct a humanoid object.
The parameter file will control details such as arm length, leg length, body mass, etc.
In short, there’s a heck of a lot I’m going to change about how the program works.