v2.0.0-beta.8 -> v2.0.0-beta.9
- WHS.Model -> WHS.Importer
r11 → r12 (dev)
WHS.World .setScene() is now .importScene()
- (
WHS.Shape, WHS.Light, WHS.Camera)
.setNative() removed. Use .native = myMesh instead.
.getNative() removed. Use .native instead.
.getParent() removed. Use .parent instead.
.setParams() removed. Use .params = {} instead.
- Object-oriented System -> Component-oriented System.
Usage:
@MeshComponent
class BasicSphere extends Component {
// ...
Or:
const mesh = new THREE.Mesh();
const elementFromMesh = WHS.Element(mesh, [WHS.MeshComponent]);
- Classes changed:
WHS.Camera -> WHS.CameraComponent decorator.
WHS.Light -> WHS.LighgtComponent decorator.
WHS.Shape -> WHS.MeshComponent decorator. (WHS.Shape now replaces WHS.Shape2D)
WHS.Shape physics part -> WHS.PhysicsComponent decorator.
WHS.Shape softbody processing part -> WHS.SoftbodyComponent decorator.