public BuoyancyController(BuoyancyControllerDef buoyancyControllerDef)
 {
     Normal          = buoyancyControllerDef.Normal;
     Offset          = buoyancyControllerDef.Offset;
     Density         = buoyancyControllerDef.Density;
     Velocity        = buoyancyControllerDef.Velocity;
     LinearDrag      = buoyancyControllerDef.LinearDrag;
     AngularDrag     = buoyancyControllerDef.AngularDrag;
     UseDensity      = buoyancyControllerDef.UseDensity;
     UseWorldGravity = buoyancyControllerDef.UseWorldGravity;
     Gravity         = buoyancyControllerDef.Gravity;
 }
Ejemplo n.º 2
0
 public BuoyancyController(BuoyancyControllerDef buoyancyControllerDef)
 {
     Normal = buoyancyControllerDef.Normal;
     Offset = buoyancyControllerDef.Offset;
     Density = buoyancyControllerDef.Density;
     Velocity = buoyancyControllerDef.Velocity;
     LinearDrag = buoyancyControllerDef.LinearDrag;
     AngularDrag = buoyancyControllerDef.AngularDrag;
     UseDensity = buoyancyControllerDef.UseDensity;
     UseWorldGravity = buoyancyControllerDef.UseWorldGravity;
     Gravity = buoyancyControllerDef.Gravity;
 }