关节角度当body2围绕铰链点逆时针旋转时为正值
GetAnchorA():b2Vec2
GetAnchorB():b2Vec2
GetJointAngle():Number
关节限制(Joint limit)可以限制旋转的范围:
...
everyinch
13年前 (2011-10-03) 7513℃
0喜欢
旋转关节使两个物体共享一个公共的锚点,被称作铰链点;旋转关节只有一个自由度:两个物体的相对旋转,被称作关节角度
var jointDef:b2RevoluteJointDef = new b2RevoluteJointDef();
jointDef.Initialize(p...
everyinch
13年前 (2011-10-03) 8875℃
0喜欢
距离关节:指定两个物体;在世界坐标系中指定两个锚点,第1个锚点和物体1相连,第2个锚点和物体2相连;这两个点的位置也确定了距离约束的长度
var jointDef:b2DistanceJointDef = new b2DistanceJointDef();
jointDef...
everyinch
13年前 (2011-10-03) 5284℃
0喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
13年前 (2011-10-03) 3256℃
0喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
13年前 (2011-10-03) 3005℃
0喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
13年前 (2011-10-03) 3307℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
import Box2D.Dynamics.b2Body;
import Box2D...
everyinch
13年前 (2011-10-03) 3104℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
13年前 (2011-10-03) 5215℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
13年前 (2011-10-03) 3944℃
1喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
13年前 (2011-10-03) 4208℃
2喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
import Box2D.Dynamics.Contacts.b2Contact;
...
everyinch
13年前 (2011-10-03) 4320℃
2喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
import Box2D.Dynamics.Joints.b2RevoluteJoint...
everyinch
13年前 (2011-10-03) 7381℃
1喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
imp...
everyinch
13年前 (2011-10-03) 4120℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
13年前 (2011-10-03) 5253℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
13年前 (2011-10-03) 4883℃
0喜欢