Skip to main content

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

objectCCLightningTrack

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

float

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

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Sway

public float Sway { get; set; }

Property Value

float

Track

Returns the computed segment track of the lightning bolt.

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

Returns the computed segment track of the lightning bolt.

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

Track

public List<CCPoint> Track { get; }

Property Value

List<CCPoint>

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

List<CCPoint>

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

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

CreateBolt(CCPoint, CCPoint)

protected virtual List<CCPoint> CreateBolt(CCPoint source, CCPoint dest)

Parameters

source CCPoint

dest CCPoint

Returns

List<CCPoint>

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

GetPoint(float)

public virtual CCPoint GetPoint(float position)

Parameters

position float

Returns

CCPoint

  • Constructors
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
    • CCLightningTrack(CCPoint, CCPoint)
  • Properties
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Sway
    • Track
    • Track
    • Track
    • Track
    • Track
    • Track
    • Track
    • Track
    • Track
    • Track
    • Track
    • Track
  • Methods
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • CreateBolt(CCPoint, CCPoint)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)
    • GetPoint(float)