C# 클래스 BEPUphysics.BroadPhaseSystems.SortAndSweep.Grid2DSortAndSweep

Broad phase implementation that partitions objects into a 2d grid, and then performs a sort and sweep on the final axis.
This broad phase typically has very good collision performance and scales well with multithreading, but its query times can sometimes be worse than tree-based systems since it must scan cells. Keeping rays as short as possible helps avoid unnecessary cell checks. The performance can degrade noticeably in some situations involving significant off-axis motion.
상속: BroadPhase
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
Add ( BroadPhaseEntry entry ) : void

Adds an entry to the broad phase.

Grid2DSortAndSweep ( ) : System

Constructs a grid-based sort and sweep broad phase.

Grid2DSortAndSweep ( IThreadManager threadManager ) : System

Constructs a grid-based sort and sweep broad phase.

Remove ( BroadPhaseEntry entry ) : void

Removes an entry from the broad phase.

보호된 메소드들

메소드 설명
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

비공개 메소드들

메소드 설명
ComputeCell ( Vector3 &v, Int2 &cell ) : void
UpdateCell ( int i ) : void
UpdateEntry ( int i ) : void

메소드 상세

Add() 공개 메소드

Adds an entry to the broad phase.
public Add ( BroadPhaseEntry entry ) : void
entry BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Entry to add.
리턴 void

Grid2DSortAndSweep() 공개 메소드

Constructs a grid-based sort and sweep broad phase.
public Grid2DSortAndSweep ( ) : System
리턴 System

Grid2DSortAndSweep() 공개 메소드

Constructs a grid-based sort and sweep broad phase.
public Grid2DSortAndSweep ( IThreadManager threadManager ) : System
threadManager IThreadManager Thread manager to use for the broad phase.
리턴 System

Remove() 공개 메소드

Removes an entry from the broad phase.
public Remove ( BroadPhaseEntry entry ) : void
entry BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Entry to remove.
리턴 void

UpdateMultithreaded() 보호된 메소드

protected UpdateMultithreaded ( ) : void
리턴 void

UpdateSingleThreaded() 보호된 메소드

protected UpdateSingleThreaded ( ) : void
리턴 void