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
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Свойство 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

Méthodes publiques

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

Private Methods

Méthode Description
IUpdatable ( ) : void

Method Details

GooCursor() public méthode

public GooCursor ( int trailNodeCount = 50 ) : Microsoft.Xna.Framework
trailNodeCount int
Résultat Microsoft.Xna.Framework

onAddedToEntity() public méthode

public onAddedToEntity ( ) : void
Résultat void

render() public méthode

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
Résultat void

Property Details

borderColor public_oe property

color used for the cursor border
public Color,Microsoft.Xna.Framework borderColor
Résultat Microsoft.Xna.Framework.Color

borderSize public_oe property

Size of the border (in pixels)
public float borderSize
Résultat float

endScale public_oe property

The scaling applied at the end of the cursor
public float endScale
Résultat float

fillColor public_oe property

Color used to fill the cursor
public Color,Microsoft.Xna.Framework fillColor
Résultat 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
Résultat float

startScale public_oe property

The scaling applied at the tip of the cursor
public float startScale
Résultat float

trailDamping public_oe property

Controls the damping of the velocity of trail nodes
public float trailDamping
Résultat float

trailNodeMass public_oe property

Mass of a trails node
public float trailNodeMass
Résultat 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
Résultat float