@@ -25,11 +25,13 @@ Box2DX Copyright (c) 2009 Ihar Kalasouski http://code.google.com/p/box2dx
25
25
// SOFTWARE.
26
26
*/
27
27
28
+ using System ;
28
29
using System . Numerics ;
29
30
using System . Runtime . CompilerServices ;
30
31
using Box2D . NetStandard . Common ;
31
32
using Box2D . NetStandard . Dynamics . Bodies ;
32
33
using Box2D . NetStandard . Dynamics . Joints . Distance ;
34
+ using Box2D . NetStandard . Dynamics . Joints . Friction ;
33
35
using Box2D . NetStandard . Dynamics . Joints . Gear ;
34
36
using Box2D . NetStandard . Dynamics . Joints . Mouse ;
35
37
using Box2D . NetStandard . Dynamics . Joints . Prismatic ;
@@ -192,16 +194,18 @@ public static void AngularStiffness(
192
194
internal static Joint Create ( JointDef def )
193
195
{
194
196
return def switch
195
- {
196
- DistanceJointDef d => new DistanceJoint ( d ) ,
197
- MouseJointDef d => new MouseJoint ( d ) ,
198
- PrismaticJointDef d => new PrismaticJoint ( d ) ,
199
- RevoluteJointDef d => new RevoluteJoint ( d ) ,
200
- PulleyJointDef d => new PulleyJoint ( d ) ,
201
- GearJointDef d => new GearJoint ( d ) ,
202
- WheelJointDef d => new WheelJoint ( d ) ,
203
- WeldJointDef d => new WeldJoint ( d )
204
- } ;
197
+ {
198
+ DistanceJointDef d => new DistanceJoint ( d ) ,
199
+ MouseJointDef d => new MouseJoint ( d ) ,
200
+ PrismaticJointDef d => new PrismaticJoint ( d ) ,
201
+ RevoluteJointDef d => new RevoluteJoint ( d ) ,
202
+ PulleyJointDef d => new PulleyJoint ( d ) ,
203
+ GearJointDef d => new GearJoint ( d ) ,
204
+ WheelJointDef d => new WheelJoint ( d ) ,
205
+ WeldJointDef d => new WeldJoint ( d ) ,
206
+ FrictionJointDef d => new FrictionJoint ( d ) ,
207
+ _ => throw new NotImplementedException ( $ "JointDef '{ def . GetType ( ) . Name } ' is not implemented.")
208
+ } ;
205
209
}
206
210
207
211
internal abstract void InitVelocityConstraints ( in SolverData data ) ;
0 commit comments