NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: lookang on April 11, 2008, 01:49:29 pm



Title: How to port over other open source Physics Library ?
Post by: lookang on April 11, 2008, 01:49:29 pm
Can look how these open resource codes can be used in EJS ?
Remember i mention something about an interactive physics applet ?
Can be done sir?

How to port over other open source Physics Library ?





2-D Engine
http://www.box2d.org/
http://www.barechoons.com/content/view/27/#josc358


3-D engine
http://www.bulletphysics.com/Bullet/wordpress/



Title: Re: How to port over other open source Physics Library ?
Post by: Fu-Kwun Hwang on April 12, 2008, 11:47:23 am
Box2D was written in C++. Someone need to do work to convert it to java.
Actually, you can create those effect without Box2D with EJS.
There are particles (which can rotate and change shape) or polygon to draw any kind of object.
What really important is give proper physics property to the object and that is the fun part to play with physics.

You just want to have fun to play with something like Box2D ,or you want to help student learn how to connect the physics to the case.

JBullet is a java library. You can include any java library and use it. Just include the jar files.


Title: Re: How to port over other open source Physics Library ?
Post by: lookang on April 12, 2008, 12:41:16 pm
want to make something like interactive physics, a virtual space where physics comes alive and allow students to create simulations personally motivating to learn from them.

 ;D


Title: Re: How to port over other open source Physics Library ?
Post by: Fu-Kwun Hwang on April 13, 2008, 09:28:14 am
Are you sure students can learn physics when they play with the scene at http://www.barechoons.com/content/view/27/#josc358 ?

For Interactive Physics, I believe instructor need to design scene ,and ask the right questions to make the activity effective.
'Interactive Physics' provide possibility for students to design scene to find out the result, but it did not provide the reason why it is working that way? And EJS can do much better if we want to help student with the physics model. And that is the reason why I devoted my time to EJS.

Yes. It is possible to create something similar to interactive physics with EJS or even to create another similar software.
However, I think it is designed for different teaching purpose. You are welcomed to build modules with EJS to have similar environment like "interactive physics". But I will keep working with EJS to create small modules for students. (Similar effect but different approach)

You might want to try out modellus (http://modellus.fct.unl.pt/). May be that is what you are looking for. I did not select modellus because it was not written in JAVA.   I have asked them to develop java version, and they just have beta version available recently.