mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 05:28:41 +02:00
31 lines
734 B
C++
31 lines
734 B
C++
//
|
|
// ShapeInfoUtil.h
|
|
// libraries/physcis/src
|
|
//
|
|
// Created by Andrew Meadows 2014.12.01
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_ShapeInfoUtil_h
|
|
#define hifi_ShapeInfoUtil_h
|
|
|
|
#ifdef USE_BULLET_PHYSICS
|
|
|
|
#include <btBulletDynamicsCommon.h>
|
|
#include <glm/glm.hpp>
|
|
|
|
#include <ShapeInfo.h>
|
|
|
|
// translates between ShapeInfo and btShape
|
|
|
|
namespace ShapeInfoUtil {
|
|
void collectInfoFromShape(const btCollisionShape* shape, ShapeInfo& info);
|
|
|
|
btCollisionShape* createShapeFromInfo(const ShapeInfo& info);
|
|
};
|
|
|
|
#endif // USE_BULLET_PHYSICS
|
|
#endif // hifi_ShapeInfoUtil_h
|