1.0.5 • Published 4 years ago
aframe-modelica-model v1.0.5
aframe-modelica-model
NPM
npm i aframe-modelica-model
// main.js
require('aframe-modelica-model');
Browserify
browserify main.js -o bundle.js
HTML
<html>
<head>
</head>
<script src="bundle.js"></script>
<body>
<a-scene background= "color:white;transparent:true">
<a-assets>
<a-asset-item id="moa" src="animation.moa"></a-asset-item>
</a-assets>
<a-entity
position = "0 1.5 0"
scale = "0.2 0.2 0.2"
aframe-modelica-model = "source:#moa;timeScale:0.2">
</a-entity>
</a-scene>
</body>
</html>
Examples
Modelica.MiltiBody.Examples.Elementary.ForceAndTorque Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses
Modelica
ModelicaServices from https://github.com/caepackages/modelica/
License
(c) Copyright 2020 Frank Rettig, all rights reserved.