Welcome to %s forums

BrainModular Users Forum

Login Register

Physics modeling in User module or Script

General Discussion about whatever fits..
Post Reply
multiphone
Member
Posts: 303
Contact:

Unread post by multiphone » 09 Dec 2009, 21:26

Hello, I would like to submit a question to the comunity of scripter and User module programer. I realy like to create new module in Usine for modeling the mecanical reaction like gravity, elasticity or rebond and friction like the script of Senso. Somthing like that is already made for game: Box 2D. You can find the source code here http://www.box2d.org. But all the souce code are in C++ and the User module are in C and the script in Pascal like. If anyone have some ideas for translate or make script or User module with the Box 2D Code ? All the idea are welcome. Thaks in advance for your help. Hervé
HB

Lines / Points / Squares

http://www.hervebirolini.com/

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 09 Dec 2009, 22:01

Hello multiphone,

I never used Box2D but know it's a pretty good library for 2D physic.


I think you can easily make a c++ interface of Box2d for usine through the SDK.

Usine primary expose these functionality in C because it's the simplest way to communicate between the main application and dll (user modules are just dll), and because Usine is coded in Delphi.

But the SDK offer a C++ interface and it shouldn't be too hard to integrate Box2D in.

You can begin to play with and test, but you should wait for the V5 of Usine and SDK, as there is a lot of change and additions.

PS : It's a good idea to integrate specialized external library in Usine, but we have to be careful about the durability of these external component. what about Box2D activity and maintenance ?

Don't hesitate if you need help or advices.
Martin FLEURENT - Usine Developer - SDK maintainer

multiphone
Member
Posts: 303
Contact:

Unread post by multiphone » 09 Dec 2009, 22:48

Hello Martignasse,

Thanks for your fast response an thanks for your idea.

But

A New specialized library in Usine for the 2D Physic are for me first a way to make sound in spacialized environement, it's the only reason to make a new stuff.

The box 2D core are not probably all apropriate to sound idea, but a few of this are interesting like:

b2 collision, b2 joint, b2 chain, Dominos etc...

I wait for the SDK of the V5.

Hervé.
HB

Lines / Points / Squares

http://www.hervebirolini.com/

Post Reply

Who is online

Users browsing this forum: No registered users and 331 guests