|
@@ -133,12 +133,10 @@ class Spline extends Object3D {
|
|
|
|
|
|
// Generate the splineData from a matrix, can't move the spline after that
|
|
// Generate the splineData from a matrix, can't move the spline after that
|
|
public function makeFromMatrix( m : h3d.Matrix ) {
|
|
public function makeFromMatrix( m : h3d.Matrix ) {
|
|
- var splineTransform = getTransform();
|
|
|
|
var tmp = new h3d.Matrix();
|
|
var tmp = new h3d.Matrix();
|
|
for( pd in pointsData ) {
|
|
for( pd in pointsData ) {
|
|
var sp = new SplinePoint(0, 0, 0, null);
|
|
var sp = new SplinePoint(0, 0, 0, null);
|
|
tmp.load(pd);
|
|
tmp.load(pd);
|
|
- tmp.multiply(tmp, splineTransform);
|
|
|
|
tmp.multiply(tmp, m);
|
|
tmp.multiply(tmp, m);
|
|
sp.setTransform(tmp);
|
|
sp.setTransform(tmp);
|
|
sp.getAbsPos();
|
|
sp.getAbsPos();
|