public override void SafeSetDefaults() { Chain = new VerletChainInstance(false) { segmentCount = 16, segmentDistance = 16, //if your using a texture to connect all the points, keep this near the texture size constraintRepetitions = 2, //defaults to 2, raising this lowers stretching at the cost of performance drag = 2f, //This number defaults to 1, Is very sensitive forceGravity = new Vector2(0f, 0.25f), //gravity x/y gravityStrengthMult = 1f }; }
public BodyHandler(VitricBoss parent) { this.parent = parent; chain = new VerletChainInstance(true); chain.segmentCount = 8; chain.customDistances = true; chain.drag = 1.1f; chain.segmentDistanceList = new List <float>() { 100, 100, 48, 36, 32, 32, 32, 32 }; }
public VitricBossSwoosh(Vector2 offset, int length, VitricBoss parent) { position = offset; this.parent = parent; chain = new VerletChainInstance(true) { segmentCount = length, segmentDistance = 8, constraintRepetitions = 2, drag = 1.5f, forceGravity = new Vector2(0f, 0.25f), gravityStrengthMult = 1f }; }