Beispiel #1
0
 public void CopyToBulletSBConfig(BulletSharp.SoftBody.Config sBConfig)
 {
     sBConfig.DynamicFriction          = DynamicFriction;
     sBConfig.Damping                  = Damping;
     sBConfig.VolumeConversation       = VolumeConversation;
     sBConfig.Pressure                 = Pressure;
     sBConfig.AnchorHardness           = AnchorHardness;
     sBConfig.Collisions               = Collisions;
     sBConfig.MaxVolume                = MaxVolume;
     sBConfig.PoseMatching             = PoseMatching;
     sBConfig.VelocityCorrectionFactor = VelocityCorrectionFactor;
     sBConfig.Timescale                = Timescale;
     sBConfig.RigidContactHardness     = RigidContactHardness;
     sBConfig.KineticContactHardness   = KineticContactHardness;
     sBConfig.PositionIterations       = PositionIterations;
     sBConfig.DriftIterations          = DriftIterations;
     sBConfig.VelocityIterations       = VelocityIterations;
     sBConfig.ClusterIterations        = ClusterIterations;
     sBConfig.AeroModel                = aeroModel;
     sBConfig.Drag = Drag;
     sBConfig.Lift = Lift;
     sBConfig.SoftRigidHardness       = SoftRigidHardness;
     sBConfig.SoftKineticHardness     = SoftKineticHardness;
     sBConfig.SoftSoftHardness        = SoftSoftHardness;
     sBConfig.SoftRigidImpulseSplit   = SoftRigidImpulseSplit;
     sBConfig.SoftKineticImpulseSplit = SoftKineticImpulseSplit;
     sBConfig.SoftSoftImpulseSplit    = SoftSoftImpulseSplit;
 }
 public void SetConfig(BulletSharp.SoftBody.Config sBConfig)
 {
     sBConfig.DF          = DF;
     sBConfig.DP          = DP;
     sBConfig.VC          = VC;
     sBConfig.PR          = PR;
     sBConfig.Ahr         = Ahr;
     sBConfig.Collisions  = Collisions;
     sBConfig.MaxVolume   = MaxVolume;
     sBConfig.MT          = MT;
     sBConfig.Vcf         = Vcf;
     sBConfig.Timescale   = Timescale;
     sBConfig.Chr         = Chr;
     sBConfig.Khr         = Khr;
     sBConfig.PIterations = PIterations;
     sBConfig.DIterations = DIterations;
     sBConfig.Viterations = Viterations;
     sBConfig.CIterations = CIterations;
     sBConfig.AeroModel   = aeroModel;
     sBConfig.DG          = DG;
     sBConfig.LF          = LF;
     sBConfig.SrhrCL      = SrhrCL;
     sBConfig.SkhrCL      = SkhrCL;
     sBConfig.SshrCL      = SshrCL;
     sBConfig.SRSplitCL   = SRSplitCL;
     sBConfig.SKSplitCL   = SKSplitCL;
     sBConfig.SSSplitCL   = SSSplitCL;
 }