ねんどろ風ルコ.pmdで物理演算指定の一部剛体が、モデルが静止している際にISLAND_SLEEPING状態になる不具合を修正
@@ -40,7 +40,7 @@ | ||
40 | 40 | effect.World = Matrix.Identity; |
41 | 41 | vertexDec = VertexPositionColor.VertexDeclaration;//new VertexDeclaration(device, VertexPositionColor.VertexElements); |
42 | 42 | vertex = new VertexPositionColor[50]; |
43 | - DebugMode=(DebugDrawModes.DBG_DrawWireframe | DebugDrawModes.DBG_DrawConstraints); | |
43 | + DebugMode=(DebugDrawModes.DBG_DrawWireframe | DebugDrawModes.DBG_DrawConstraints | DebugDrawModes.DBG_NoDeactivation); | |
44 | 44 | } |
45 | 45 | /// <summary> |
46 | 46 | /// 剛体の描画 |
@@ -133,6 +133,7 @@ | ||
133 | 133 | #endif |
134 | 134 | //物理作成 |
135 | 135 | //物理エンジンの作成 |
136 | + RigidBody.gDisableDeactivation = true; | |
136 | 137 | config = new DefaultCollisionConfiguration(); |
137 | 138 | dispatcher = new CollisionDispatcher(config); |
138 | 139 | pairCache = new AxisSweep3(new btVector3(-10000, -10000, -10000), new btVector3(10000, 10000, 10000), 5 * 5 * 5 + 1024, null, false); |