LightSpriteBase Constructor |
Construct a new light source sprite providing all the properties of the light source and the base sprite.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public LightSpriteBase(
LayerBase layer,
double x,
double y,
double dx,
double dy,
int state,
int frame,
bool active,
Solidity solidity,
int color,
float constantFalloff,
float linearFalloff,
float quadraticFalloff,
float aimX,
float aimY,
float aimZ,
float lightZ,
float apertureFocus,
float apertureSoftness
)
Parameters
- layer
- Type: (Default Namespace)LayerBase
Layer that contains the sprite. - x
- Type: SystemDouble
Initial horizontal coordinate within the layer - y
- Type: SystemDouble
Initial vertical coordinate within the layer - dx
- Type: SystemDouble
Initial horizontal velocity - dy
- Type: SystemDouble
Initial vertical velocity - state
- Type: SystemInt32
Initial state - frame
- Type: SystemInt32
Initial frame within the initial state - active
- Type: SystemBoolean
Determines if the sprite is initially active - solidity
- Type: (Default Namespace)Solidity
Which solidity definition does the sprite initially react to - color
- Type: SystemInt32
Initial color modulation settings - constantFalloff
- Type: SystemSingle
Initial value for constantFalloff - linearFalloff
- Type: SystemSingle
Initial value for linearFalloff - quadraticFalloff
- Type: SystemSingle
Initial value for quadraticFalloff - aimX
- Type: SystemSingle
Initial value for aimX - aimY
- Type: SystemSingle
Initial value for aimY - aimZ
- Type: SystemSingle
Initial value for aimZ - lightZ
- Type: SystemSingle
Initial value for lightZ - apertureFocus
- Type: SystemSingle
Initial value for apertureFocus - apertureSoftness
- Type: SystemSingle
Initial value for apertureSoftness
See Also