关节角度当body2围绕铰链点逆时针旋转时为正值
GetAnchorA():b2Vec2
GetAnchorB():b2Vec2
GetJointAngle():Number
关节限制(Joint limit)可以限制旋转的范围:
...
everyinch
14年前 (2011-10-03) 7543℃
0喜欢
旋转关节使两个物体共享一个公共的锚点,被称作铰链点;旋转关节只有一个自由度:两个物体的相对旋转,被称作关节角度
var jointDef:b2RevoluteJointDef = new b2RevoluteJointDef();
jointDef.Initialize(p...
everyinch
14年前 (2011-10-03) 8913℃
0喜欢
距离关节:指定两个物体;在世界坐标系中指定两个锚点,第1个锚点和物体1相连,第2个锚点和物体2相连;这两个点的位置也确定了距离约束的长度
var jointDef:b2DistanceJointDef = new b2DistanceJointDef();
jointDef...
everyinch
14年前 (2011-10-03) 5345℃
0喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
14年前 (2011-10-03) 3284℃
0喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
14年前 (2011-10-03) 3024℃
0喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
14年前 (2011-10-03) 3320℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
import Box2D.Dynamics.b2Body;
import Box2D...
everyinch
14年前 (2011-10-03) 3125℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
14年前 (2011-10-03) 5248℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
14年前 (2011-10-03) 3964℃
1喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;...
everyinch
14年前 (2011-10-03) 4227℃
2喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
import Box2D.Dynamics.Contacts.b2Contact;
...
everyinch
14年前 (2011-10-03) 4342℃
2喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
import Box2D.Dynamics.Joints.b2RevoluteJoint...
everyinch
14年前 (2011-10-03) 7400℃
1喜欢
package{
import Box2D.Collision.Shapes.b2CircleShape;
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Common.Math.b2Vec2;
imp...
everyinch
14年前 (2011-10-03) 4148℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
14年前 (2011-10-03) 5286℃
0喜欢
package{
import Box2D.Collision.Shapes.b2PolygonShape;
import Box2D.Collision.Shapes.b2Shape;
import Box2D.Collision.b2AABB;
import Box2...
everyinch
14年前 (2011-10-03) 4909℃
0喜欢