/
redgpu
/
bullet
Обзор
Документация
Войти
/
redgpu
/
bullet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/SharedMemory/plugins/stablePDPlugin/Shape.cpp
38 строк
602 B
erwincoumans
more PyBullet PhysX preliminary work.
25 янв 2019, 21:14
25 янв 2019, 21:14
a6244d7
Код
Авторство
О чём код?
#include "Shape.h" #include <assert.h> #include <stdio.h> bool cShape::ParseShape(const std::string& str, eShape& out_shape) { bool succ = true; if (str == "null") { out_shape = eShapeNull; } else if (str == "box") { out_shape = eShapeBox; } else if (str == "capsule") { out_shape = eShapeCapsule; } else if (str == "sphere") { out_shape = eShapeSphere; } else if (str == "cylinder") { out_shape = eShapeCylinder; } else if (str == "plane") { out_shape = eShapePlane; } else { printf("Unsupported body shape %s\n", str.c_str()); assert(false); } return succ; }