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
Show file 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 property

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

borderSize public property

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

endScale public property

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

fillColor public property

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

lerpExponent public property

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

startScale public property

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

trailDamping public property

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

trailNodeMass public property

Mass of a trails node
public float trailNodeMass
return float

trailStiffness public property

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