C# Класс SharpNeat.DomainsExtra.Box2D.SimulationParameters

Represents some generic / high level Box2d simulation parameters.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
_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

Описание свойств

_continuousPhysics публичное свойство

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
Результат bool

_defaultDensity публичное свойство

Default density.
public float _defaultDensity
Результат float

_defaultFriction публичное свойство

Default friction.
public float _defaultFriction
Результат float

_defaultRestitution публичное свойство

Default restitution.
public float _defaultRestitution
Результат float

_frameRate публичное свойство

Update rate in Hertz. Inverse of the simulation timestep increment, e.g. 60Hz = 16ms timestep.
public int _frameRate
Результат int

_gravity публичное свойство

World gravity, e.g. -9.8. (+ve Y is up).
public float _gravity
Результат float

_lowerBoundPhysics публичное свойство

Bottom left corner of physics rectangle (the area which for which physics is simulated/calculated)
public Vec2,Box2DX.Common _lowerBoundPhysics
Результат Box2DX.Common.Vec2

_lowerBoundView публичное свойство

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
Результат Box2DX.Common.Vec2

_positionIters публичное свойство

Box2d position constraint solver iterations per loop.
public int _positionIters
Результат int

_timeStep публичное свойство

See _frameRate.
public float _timeStep
Результат float

_upperBoundPhysics публичное свойство

Upper right corner of physics rectangle (the area which for which physics is simulated/calculated)
public Vec2,Box2DX.Common _upperBoundPhysics
Результат Box2DX.Common.Vec2

_upperBoundView публичное свойство

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
Результат Box2DX.Common.Vec2

_velocityIters публичное свойство

Box2d velocity constraint solver iterations per loop.
public int _velocityIters
Результат int

_warmStarting публичное свойство

Allow physics calcs to use values from previous timestep.
public bool _warmStarting
Результат bool