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; }
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; }
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; }