Cocos2D.CCLightningTrack
Class CCLightningTrack
Namespace: Cocos2D
Assembly: Cocos2D.dll, cocos2d_mono.Core.Android.dll, cocos2d_mono.Core.DesktopGL.dll, cocos2d-mono.Core.iOS.dll, cocos2d_mono.Core.Linux.dll, cocos2d_mono.Core.macOS.dll, cocos2d_mono.Windows.dll, cocos2d_mono.DesktopGL.dll, cocos2d-mono.iOS.dll, cocos2d_mono.Linux.dll, cocos2d_mono.macOS.dll
public class CCLightningTrack
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
CCLightningTrack(CCPoint, CCPoint)
public CCLightningTrack(CCPoint start, CCPoint end)
Parameters
start
CCPoint
end
CCPoint
Properties
Sway
This determines how much each segment of the lightning strike will deviate from its past neighbor. The value range is [1,+inf). The jaggedness of the bolt is inversely proportional to the sway.
public float Sway { get; set; }
Property Value
Sway
This determines how much each segment of the lightning strike will deviate from its past neighbor. The value range is [1,+inf). The jaggedness of the bolt is inversely proportional to the sway.
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Sway
public float Sway { get; set; }
Property Value
Track
Returns the computed segment track of the lightning bolt.
public List<CCPoint> Track { get; }
Property Value
Track
Returns the computed segment track of the lightning bolt.
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Track
public List<CCPoint> Track { get; }
Property Value
Methods
CreateBolt(CCPoint, CCPoint)
Creates the full set of bolt segments between the start and end points. Based upon the algorithm found at http://gamedevelopment.tutsplus.com/tutorials/how-to-generate-shockingly-good-2d-lightning-effects--gamedev-2681 by Michael Hoffman.
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
Creates the full set of bolt segments between the start and end points. Based upon the algorithm found at http://gamedevelopment.tutsplus.com/tutorials/how-to-generate-shockingly-good-2d-lightning-effects--gamedev-2681 by Michael Hoffman.
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
CreateBolt(CCPoint, CCPoint)
protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)
Parameters
source
CCPoint
dest
CCPoint
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float
Returns
GetPoint(float)
public virtual CCPoint GetPoint(float position)
Parameters
position
float