コード例 #1
0
ファイル: RigidBody.cs プロジェクト: sandygk/System.Physics
 internal RigidBody(RigidBodyDescriptor descriptor, Scene scene)
 {
     WrappedActor = CreateActor(descriptor, scene);
     Configurator = new RigidBodyConfigurator(this);
     FixtureFactory = new RigidBodyFixtureFactory(this);
     Forces = new RigidBodyForces(this);
     Velocity = new RigidBodyVelocity(this);
     MassFrame = new RigidBodyMassFrame(this);
     UserData = descriptor.UserData;
 }
コード例 #2
0
 internal RigidBody(RigidBodyDescriptor descriptor, Scene scene)
 {
     WrappedActor   = CreateActor(descriptor, scene);
     Configurator   = new RigidBodyConfigurator(this);
     FixtureFactory = new RigidBodyFixtureFactory(this);
     Forces         = new RigidBodyForces(this);
     Velocity       = new RigidBodyVelocity(this);
     MassFrame      = new RigidBodyMassFrame(this);
     UserData       = descriptor.UserData;
 }
コード例 #3
0
ファイル: RigidBody.cs プロジェクト: sandygk/System.Physics
        internal RigidBody(RigidBodyDescriptor descriptor)
        {
            WrappedRigidBody = new DR.RigidBody {AutoUpdateMass = true, MotionType = descriptor.MotionType.ToDigitalRune()};

            Configurator = new RigidBodyConfigurator(this);
            FixtureFactory = new RigidBodyFixtureFactory(this);
            Forces = new RigidBodyForces(this);
            Velocity = new RigidBodyVelocity(this);
            MassFrame = new RigidBodyMassFrame(this);
            Descriptor = descriptor;
        }
コード例 #4
0
ファイル: RigidBody.cs プロジェクト: fasteng/System.Physics
        internal RigidBody(RigidBodyDescriptor descriptor)
        {
            WrappedRigidBody = new DR.RigidBody {
                AutoUpdateMass = true, MotionType = descriptor.MotionType.ToDigitalRune()
            };

            Configurator   = new RigidBodyConfigurator(this);
            FixtureFactory = new RigidBodyFixtureFactory(this);
            Forces         = new RigidBodyForces(this);
            Velocity       = new RigidBodyVelocity(this);
            MassFrame      = new RigidBodyMassFrame(this);
            Descriptor     = descriptor;
        }