box2d-jquery icon indicating copy to clipboard operation
box2d-jquery copied to clipboard

Divs are not respecting rotation values

Open oakbarrel opened this issue 11 years ago • 2 comments

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?

oakbarrel avatar Sep 30 '13 20:09 oakbarrel

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

franzenzenhofer avatar Oct 01 '13 07:10 franzenzenhofer

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.

oakbarrel avatar Oct 01 '13 20:10 oakbarrel