Example #1
0
 public Material(RigidBody rigidBody, PX.Material wrappedMaterial, MaterialDescriptor descriptor)
 {
     wrappedMaterial.DynamicFriction = descriptor.Friction;
     wrappedMaterial.StaticFriction = descriptor.Friction;
     wrappedMaterial.Restitution = descriptor.Restitution;
     _wrappedMaterial = wrappedMaterial;
     Configurator = new BaseConfigurator<IMaterial>();
 }
 public static IMaterial CreateMaterial(this IFactory<IMaterial> factory,
                                             MaterialDescriptor descriptor)
 {
     return factory.Create<IMaterial, MaterialDescriptor>(descriptor);
 }
Example #3
0
     Material(MaterialDescriptor descriptor)
 {
     WrappedUniformMaterial = new UniformMaterial();
     Configurator = new MaterialConfigurator(this);
     Descriptor = descriptor;
 }