English 中文(简体)
Which direction is zero (0) in Box2D?
原标题:
  • 时间:2011-05-10 21:20:00
  •  标签:
  • box2d
  • jbox2d

Which direction is considered 0 degrees in box2D? Is it north, south, east, west? And then do the angles increase clockwise, or counter-clockwise?

I ve read through the manual and it doesn t seem to mention this anywhere.

最佳回答

Box2d actually uses radians... 0 would correspond to "East".

http://en.wikipedia.org/wiki/Radian

enter image description here

问题回答

暂无回答




相关问题
Breaking a concave polygon into convex ones

I m using a game physics library (Box2D) which only supports convex polygon shapes. However, I d like the level builder to be able to just specify concave polygons without having to worry about that. ...

How to set the position of a sprite within a box2d body?

Basically I have 2 polygons for my body. When I add a sprite for userData, the position of the texture isn t where I want it to be. What I want to do is adjust the position of the texture within the ...

Farseer or Box2D? Top-down shooter physics implementation

Which one of these would fit a top down shooter better? I ve heard that Box2D performs faster, but I ve also noticed that it lacks wider community support for XNA (it rather seems to be used for ...

Box2D in Flash runs quicker when drawing debug data than not

I ve created a small game with Box2d for AS3 - I have sprites attached to the stage that take their position from the underlying Box2d world. These sprites are mostly PNGs. When the game runs with ...

GetBodyCount() always returning 0 in Box2d?

I am using the cocos2d-iphone + Box2d engine, I have a simple call in Box2d to create a body: b2Body *crateBody = world->CreateBody(&crateBodyDef); Then I am printing the newly incremented ...

box2d: bigger clickable/touchable area

I m using Box2D on my iPhone app using Cocos2D. I m using mouse joint to drag objects by touch. The touch event is handled to find the corresponding Box2D body using AABB queries. I would want to ...

Falling object in Box2D should rotate due to centre of mass?

I m trying to simulate a falling balloon in Box2DAS3. What is important is that balloon falls the such that the bottom part were you blow it up rotates towards the bottom if it s knock sideways or is ...

热门标签