mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Declare separate constructors with const reference and rvalue arguments for OscillatingRecastMeshObject
This commit is contained in:
parent
2d869ca9ff
commit
0bc0cfce5f
@ -4,13 +4,20 @@
|
||||
|
||||
namespace DetourNavigator
|
||||
{
|
||||
OscillatingRecastMeshObject::OscillatingRecastMeshObject(RecastMeshObject impl, std::size_t lastChangeRevision)
|
||||
OscillatingRecastMeshObject::OscillatingRecastMeshObject(RecastMeshObject&& impl, std::size_t lastChangeRevision)
|
||||
: mImpl(std::move(impl))
|
||||
, mLastChangeRevision(lastChangeRevision)
|
||||
, mAabb(BulletHelpers::getAabb(mImpl.getShape(), mImpl.getTransform()))
|
||||
{
|
||||
}
|
||||
|
||||
OscillatingRecastMeshObject::OscillatingRecastMeshObject(const RecastMeshObject& impl, std::size_t lastChangeRevision)
|
||||
: mImpl(impl)
|
||||
, mLastChangeRevision(lastChangeRevision)
|
||||
, mAabb(BulletHelpers::getAabb(mImpl.getShape(), mImpl.getTransform()))
|
||||
{
|
||||
}
|
||||
|
||||
bool OscillatingRecastMeshObject::update(const btTransform& transform, const AreaType areaType,
|
||||
std::size_t lastChangeRevision)
|
||||
{
|
||||
|
@ -12,7 +12,8 @@ namespace DetourNavigator
|
||||
class OscillatingRecastMeshObject
|
||||
{
|
||||
public:
|
||||
explicit OscillatingRecastMeshObject(RecastMeshObject impl, std::size_t lastChangeRevision);
|
||||
explicit OscillatingRecastMeshObject(RecastMeshObject&& impl, std::size_t lastChangeRevision);
|
||||
explicit OscillatingRecastMeshObject(const RecastMeshObject& impl, std::size_t lastChangeRevision);
|
||||
|
||||
bool update(const btTransform& transform, const AreaType areaType, std::size_t lastChangeRevision);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user