C# Class Nez.GooCursor

cursor with trails. Note that this should be rendered in screen space (ScreenSpaceRenderer) so it isnt transformed by the camera matrix Adapted from: http://www.catalinzima.com/xna/samples/world-of-goo-cursor/
Inheritance: RenderableComponent, IUpdatable
Datei anzeigen Open project: prime31/Nez

Public Properties

Property Type Description
borderColor Microsoft.Xna.Framework.Color
borderSize float
endScale float
fillColor Microsoft.Xna.Framework.Color
lerpExponent float
startScale float
trailDamping float
trailNodeMass float
trailStiffness float

Public Methods

Method Description
GooCursor ( int trailNodeCount = 50 ) : Microsoft.Xna.Framework
onAddedToEntity ( ) : void
render ( Graphics graphics, Camera camera ) : void

Private Methods

Method Description
IUpdatable ( ) : void

Method Details

GooCursor() public method

public GooCursor ( int trailNodeCount = 50 ) : Microsoft.Xna.Framework
trailNodeCount int
return Microsoft.Xna.Framework

onAddedToEntity() public method

public onAddedToEntity ( ) : void
return void

render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
return void

Property Details

borderColor public_oe property

color used for the cursor border
public Color,Microsoft.Xna.Framework borderColor
return Microsoft.Xna.Framework.Color

borderSize public_oe property

Size of the border (in pixels)
public float borderSize
return float

endScale public_oe property

The scaling applied at the end of the cursor
public float endScale
return float

fillColor public_oe property

Color used to fill the cursor
public Color,Microsoft.Xna.Framework fillColor
return Microsoft.Xna.Framework.Color

lerpExponent public_oe property

use this to control the rate of change between the StartScale and the EndScale
public float lerpExponent
return float

startScale public_oe property

The scaling applied at the tip of the cursor
public float startScale
return float

trailDamping public_oe property

Controls the damping of the velocity of trail nodes
public float trailDamping
return float

trailNodeMass public_oe property

Mass of a trails node
public float trailNodeMass
return float

trailStiffness public_oe property

Gets of Sets the stiffness of the trail A lower number means the trail will be longer
public float trailStiffness
return float