franzenzenhofer / box2d-jquery

convert your DOM into physical objects using this awesome jQuery wrapper around box2d-web
456 stars 71 forks source link

Divs are not respecting rotation values #23

Open oakbarrel opened 10 years ago

oakbarrel commented 10 years ago

Hi!

I'm trying to rotate divs to use them as static diagonal obstacles.

The css rotation values seem to get overridden as soon as I make the div participate in the physics simulation. This makes sense for dynamic objects. But I imagine there should be some way of rotating static elements?

To re-cap: Is it possible to give static elements custom rotational values and what would the correct syntax be?

franzenzenhofer commented 10 years ago

we will probably do some SVG sometime in the future (if i manage to probably revive this project again)

oakbarrel commented 10 years ago

Hi!

Thanks for your reply! Does it basically mean that before there is SVG support, there is no way to rotate static elements? Not even with javascript?

By the way, I think this project has a lot of potential because it is so simple to set up compared to other physics engines.