Proof of Concept: Using a physics engine (matter.js) in H5P

otacke's picture
Forums: 

Hi all!

There's a brief demo of a proof of concept for using a physics engine in H5P content.

The demo is intended at younger children who should bring a seesaw in balance by putting weights on it. The visuals and some physical parameters can be set. Any thoughts on that one?

Given time/funding, one could create lots of content types using the physics engine (matter.js). Have a look at more examples (not put into H5P).

Best,

Oliver 

villon's picture

Hello Oliver,

a very interesting concept. As I have only recently covered weights with my maths class and I teach outside the subject, as I often do at primary school, I of course immediately thought that this would have been useful there. A nice extension would be if it were possible to include more than two objects so that different weights could be represented in different denominations.

Kind regards

Josef

PS: I hope the support requests that reach you privately and unasked have dropped to a minimum in the meantime.

Hallo Oliver,

ein sehr interessantes Konzept. Da ich erst vor kurzem mit meiner Mathematikklasse Gewichte behandelt habe und ich fachfremd unterrichte, wie häufig an der Grundschule, dachte ich natürlich sofort, dass das dort brauchbar gewesen wäre. Eine schöne Erweiterung wäre, wenn es möglich wäre, mehr als zwei Objekte einzubinden, damit sich unterschiedliche Gewichte in verschiedenen Stückelungen darstellen ließen.

Liebe Grüße

Josef

PS: Ich hoffe, die Supportanfragen, die dich privat und ungefragt erreichen, sind inzwischen auf ein Minimum gesunken.

otacke's picture

Hi Josef!

I prepared the code for that option already when I designed it :-) Adding more objects would be very simple.

And yes, the number of requests has reduced a lot, even though I just recently (not for the first time) encountered someone who consulted someone on H5P commercially and wanted me to answer all kinds of questions regarding about how to integrate H5P into their custom application for free ...

Best,

Oliver 

There can never be enough quiet, contemplative and fun activities to understands scientific concepts. Then, if we can make them, wow! Even better. 

I think your concept is very interesting. I am also researching on how to bring a game engine such as ARMORY3D into H5P.

I would like to simulate devices have have the students perform certain tasks and action. Such as using a camera for taking pictures.

 
otacke's picture

Hi!

Yes, if you wanted to, you could use it to create games (such as Angry Birds). Armory3D doesn't run on JavaScript, does it? Don't think you'll be able to use it for H5P then.

Best,

Oliver 

Dear Oliver,

why I was considering Armory 3D: It is an extension / replacement of the old Blender engine. It compiles to many targets platform indepentently. If you wish to see some examples in the browser you can find them here:https://armory3d.github.io/armory_examples_browser/#examples-call_js

This is an example how to call a javascript from armory. This would probably be how the game engine can communicate and pass values and results to H5P.

otacke's picture

Hey!

If there's a JavaScript port, then go ahead :-)

Best,

Oliver