C# Class SharpNeat.DomainsExtra.Box2D.SimulationParameters

Represents some generic / high level Box2d simulation parameters.
ファイルを表示 Open project: colgreen/sharpneat Class Usage Examples

Public Properties

Property Type Description
_continuousPhysics bool
_defaultDensity float
_defaultFriction float
_defaultRestitution float
_frameRate int
_gravity float
_lowerBoundPhysics Box2DX.Common.Vec2
_lowerBoundView Box2DX.Common.Vec2
_positionIters int
_timeStep float
_upperBoundPhysics Box2DX.Common.Vec2
_upperBoundView Box2DX.Common.Vec2
_velocityIters int
_warmStarting bool

Property Details

_continuousPhysics public_oe property

Enable additional collision detection for high speed objects (that might not ever contact each other at a given timestep due to speed).
public bool _continuousPhysics
return bool

_defaultDensity public_oe property

Default density.
public float _defaultDensity
return float

_defaultFriction public_oe property

Default friction.
public float _defaultFriction
return float

_defaultRestitution public_oe property

Default restitution.
public float _defaultRestitution
return float

_frameRate public_oe property

Update rate in Hertz. Inverse of the simulation timestep increment, e.g. 60Hz = 16ms timestep.
public int _frameRate
return int

_gravity public_oe property

World gravity, e.g. -9.8. (+ve Y is up).
public float _gravity
return float

_lowerBoundPhysics public_oe property

Bottom left corner of physics rectangle (the area which for which physics is simulated/calculated)
public Vec2,Box2DX.Common _lowerBoundPhysics
return Box2DX.Common.Vec2

_lowerBoundView public_oe property

Bottom left corner of view rectangle (default rectangle for visual rendering of the world; typically the same or slightly smaller than the physics rectangle).
public Vec2,Box2DX.Common _lowerBoundView
return Box2DX.Common.Vec2

_positionIters public_oe property

Box2d position constraint solver iterations per loop.
public int _positionIters
return int

_timeStep public_oe property

See _frameRate.
public float _timeStep
return float

_upperBoundPhysics public_oe property

Upper right corner of physics rectangle (the area which for which physics is simulated/calculated)
public Vec2,Box2DX.Common _upperBoundPhysics
return Box2DX.Common.Vec2

_upperBoundView public_oe property

Bottom left corner of view rectangle (default rectangle for visual rendering of the world; typically the same or slightly smaller than the physics rectangle).
public Vec2,Box2DX.Common _upperBoundView
return Box2DX.Common.Vec2

_velocityIters public_oe property

Box2d velocity constraint solver iterations per loop.
public int _velocityIters
return int

_warmStarting public_oe property

Allow physics calcs to use values from previous timestep.
public bool _warmStarting
return bool