public JetAffector(float mag, MAGTYPE type, AnimationCurve curve,EffectNode node) : base(node, AFFECTORTYPE.JetAffector) { Mag = mag; MType = type; MagCurve = curve; }
public TurbulenceFieldAffector(Transform obj, MAGTYPE mtype, float mag, AnimationCurve curve, float atten, bool useMax, float maxDist, EffectNode node) : base(node, AFFECTORTYPE.TurbulenceAffector) { TurbulenceObj = obj; MType = mtype; Magnitude = mag; MagCurve = curve; UseMaxDistance = useMax; MaxDistance = maxDist; MaxDistanceSqr = MaxDistance * MaxDistance; }
public GravityAffector(Transform obj, GAFTTYPE gtype, MAGTYPE mtype,bool isacc, Vector3 dir, float mag,AnimationCurve curve,EffectNode node) : base(node, AFFECTORTYPE.GravityAffector) { GType = gtype; MType = mtype; Magnitude = mag; MagCurve = curve; Dir = dir; Dir.Normalize(); GravityObj = obj; IsAccelerate = isacc; }
public BombAffector(Transform obj, BOMBTYPE gtype, MAGTYPE mtype,BOMBDECAYTYPE dtype, float mag, AnimationCurve curve, float decay, Vector3 axis, EffectNode node) : base(node, AFFECTORTYPE.BombAffector) { BombType = gtype; MType = mtype; DecayType = dtype; Magnitude = mag; MagCurve = curve; Decay = decay; BombAxis = axis; BombAxis.Normalize(); BombObj = obj; }
public VortexAffector(Transform obj, MAGTYPE mtype, float mag, AnimationCurve vortexCurve, Vector3 dir, bool inhRot, EffectNode node) : base(node, AFFECTORTYPE.VortexAffector) { VortexCurve = vortexCurve; Direction = dir; InheritRotation = inhRot; VortexObj = obj; MType = mtype; Magnitude = mag; //ver 1.2.1 if (node.Owner.IsRandomVortexDir) { Direction.x = Random.Range (-1f, 1f); Direction.y = Random.Range (-1f, 1f); Direction.z = Random.Range (-1f, 1f); } Direction.Normalize (); }
public AirFieldAffector(Transform airObj, Vector3 dir, MAGTYPE mtype,float mag, AnimationCurve curve,float atten, bool useMaxdist, float maxDist,bool enableSpread, float spread, float inhV, bool inhRot, EffectNode node) : base(node, AFFECTORTYPE.AirFieldAffector) { AirObj = airObj; Direction = dir.normalized; MType = mtype; Magnitude = mag; MagCurve = curve; Attenuation = atten; UseMaxDistance = useMaxdist; MaxDistance = maxDist; MaxDistanceSqr = MaxDistance * MaxDistance; EnableSpread = enableSpread; Spread = spread; InheritVelocity = inhV; InheritRotation = inhRot; LastFieldPos = AirObj.position; }