Initializes a new CollisionSystem which uses a grid to speed up collision detection.
Use this system for larger scenes with many objects.
Namespace: JigLibX.CollisionAssembly: JigLibX (in JigLibX.dll) Version: 0.3.1.0
Syntax
C# |
---|
public CollisionSystemGrid( int nx, int ny, int nz, float dx, float dy, float dz ) |
Visual Basic |
---|
Public Sub New ( _ nx As Integer, _ ny As Integer, _ nz As Integer, _ dx As Single, _ dy As Single, _ dz As Single _ ) |
Visual C++ |
---|
public: CollisionSystemGrid( int nx, int ny, int nz, float dx, float dy, float dz ) |
Parameters
- nx
- Type: System..::..Int32
Number of GridEntries in X Direction.
- ny
- Type: System..::..Int32
Number of GridEntries in Y Direction.
- nz
- Type: System..::..Int32
Number of GridEntries in Z Direction.
- dx
- Type: System..::..Single
Size of a single GridEntry in X Direction.
- dy
- Type: System..::..Single
Size of a single GridEntry in Y Direction.
- dz
- Type: System..::..Single
Size of a single GridEntry in Z Direction.