Open LeeMcQueen opened 3 years ago
Cloth.h
59 void pin(Vec2 index, Vec3 offset)
78 pin1 = Vec2(0, 0); pin2 = Vec2(nodesPerRow-1, 0); //第一行倒数第二个
115 pin(pin1, Vec3(1.0, 0.0, 0.0)); //offset x=1 y=0 z=0 pin(pin2, Vec3(-1.0, 0.0, 0.0)); //offset x=-1 y=0 z=0
Cloth.h
59 void pin(Vec2 index, Vec3 offset)
78 pin1 = Vec2(0, 0); pin2 = Vec2(nodesPerRow-1, 0); //第一行倒数第二个
115 pin(pin1, Vec3(1.0, 0.0, 0.0)); //offset x=1 y=0 z=0 pin(pin2, Vec3(-1.0, 0.0, 0.0)); //offset x=-1 y=0 z=0