Hello i’m on version of oimophysics with worker
and i use sea3d format, i use many object clone with the same geometry
i needed to scale geometry and sea3d forum give me the solution so :
in away3d.core.base.SubGeometryBase class.
default is
public function scale(scale:Number):void
{
var vertices:Vector.<Number> = UVData;
var len:uint = vertices.length;
var offset:int = vertexOffset;
var stride:int = vertexStride;
for (var i:uint = offset; i < len; i += stride) {
vertices[i] *= scale;
vertices[i + 1] *= scale;
vertices[i + 2] *= scale;
}
}
and the good one should be
public function scale(scale:Number):void
{
var vertices:Vector.<Number> = vertexData;
var len:uint = vertices.length;
var offset:int = vertexOffset;
var stride:int = vertexStride;
for (var i:uint = offset; i < len; i += stride) {
vertices[i] *= scale;
vertices[i + 1] *= scale;
vertices[i + 2] *= scale;
}
}
is a error or they are any reason scale uvdata ?
thank’s