mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
bone transformations influence verts according to weights
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include"skeleton.h"
|
||||
#include"animation.h"
|
||||
#include"box.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -11,6 +12,14 @@ namespace vb01{
|
||||
void Skeleton::addBone(Bone *bone, Node *parent){
|
||||
parent->attachChild(bone);
|
||||
bones.push_back(bone);
|
||||
|
||||
Box *box=new Box(Vector3(.1,.1,.1));
|
||||
Material *mat=new Material();
|
||||
mat->setTexturingEnabled(false);
|
||||
mat->setLightingEnabled(false);
|
||||
mat->setDiffuseColor(Vector4(0,1,0,1));
|
||||
box->setMaterial(mat);
|
||||
//bone->attachMesh(box);
|
||||
}
|
||||
|
||||
Bone* Skeleton::getBone(string name){
|
||||
|
||||
Reference in New Issue
Block a user