probmods / webchurch

A Church to Javascript compiler (DEPRECATED)
Other
140 stars 15 forks source link

Box2D desiderata #66

Open iffsid opened 10 years ago

iffsid commented 10 years ago

This issue is meant to record everyone's requests/wishes with regard to the capabilities they'd like with regard to the webchurch-box2D integration.

The current state is described here. However, if you'd like a particular feature, specify it here explicitly (in detail and maybe with example scenarios or pseudo-code).

tomeru commented 10 years ago

An important feature of box2D and other physics engines is a 'joint' (or constraint). For example, see the following link:

http://www.box2d.org/manual.html#_Toc258082974

Joints can be used to specify many different relationships between objects. For my own purposes it would be particularly useful to define for example that two objects need to be 'glued together' (e.g. distance joint) rather than specifying some odd spring-like force to make sure that they do stick together, until such a moment that a force is applied and then they break apart.

The cognitive idea is that children might be a bit over-prolific in assuming contact-joints, which can explain a key part of development of stability notions.

I know porting over all the joint library is probably too much of a head-ache, but as a 'wish-list' item, I thought I'd mention at least the basic joints: distance, weld, maybe pulley.