math/libccd 2.1
Library for collision detection between two convex shapes
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
70f20d6d43- License
- BSD3CLAUSE
- Categories
- math
- Package size
- 23.7 KiB, 57.7 KiB installed
Description
libccd is library for a collision detection between two convex shapes. libccd implements variation on Gilbert-Johnson-Keerthi algorithm plus Expand Polytope Algorithm (EPA) and also implements algorithm Minkowski Portal Refinement (MPR, a.k.a. XenoCollide) as described in Game Programming Gems 7.
libccd is the only available open source library of my knowledge that include MPR algorithm working in 3-D space. However, there is a library called mpr2d, implemented in D programming language, that works in 2-D space.
Install
As a binary package — by origin, or by package name:
pkg install math/libccd
pkg install libccd
From the ports tree:
cd /usr/ports/math/libccd/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= libccd>0:math/libccd
LIB_DEPENDS= libccd.so:math/libccd
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.1 | 2.1 | 2.1 | 2.1 | 2.1 |
| FreeBSD:14:quarterly | 2.1 | 2.1 | n/a | 2.1 | 2.1 |
| FreeBSD:15:latest | 2.1 | 2.1 | n/a | 2.1 | 2.1 |
| FreeBSD:15:quarterly | 2.1 | 2.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.1 | 2.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
All build dependencies 15
Configuration
Options name: math_libccd
| Option | Default | Description |
|---|---|---|
| DOUBLE_PECISION | off | Enable double precision computations |
- USES
- cmake
- Service scripts
- none
Files
pkg-plist 14
- include/ccd/ccd.h
- include/ccd/ccd_export.h
- include/ccd/compiler.h
- include/ccd/config.h
- include/ccd/quat.h
- include/ccd/vec3.h
- lib/ccd/ccd-config-version.cmake
- lib/ccd/ccd-config.cmake
- lib/ccd/ccd-targets-.cmake
- lib/ccd/ccd-targets.cmake
- lib/libccd.so
- lib/libccd.so.2
- lib/libccd.so.2.0
- libdata/pkgconfig/ccd.pc
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| danfis-libccd-v2.1_GH0.tar.gz | 73971 | 542b6c47f522d581fbf39e51df32c7d1256ac0c626e7c2b41f1040d4b9d50d1e |