예제 #1
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;
 }
예제 #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
        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
        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;
        }