// Copyright (C) 2015 Jérôme Leclercq // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequesites.hpp #include #include #include #include namespace Ndk { inline CollisionComponent::CollisionComponent(NzPhysGeomRef geom) : m_geom(std::move(geom)), m_bodyUpdated(false) { } inline CollisionComponent::CollisionComponent(const CollisionComponent& collision) : m_geom(collision.m_geom), m_bodyUpdated(false) { } inline const NzPhysGeomRef& CollisionComponent::GetGeom() const { return m_geom; } inline CollisionComponent& CollisionComponent::operator=(NzPhysGeomRef geom) { SetGeom(geom); return *this; } inline NzPhysObject* CollisionComponent::GetStaticBody() { return m_staticBody.get(); } }