// Copyright (C) 2009-2020, Panagiotis Christopoulos Charitos and contributors.
// All rights reserved.
// Code licensed under the BSD License.
// http://www.anki3d.org/LICENSE

#pragma once

#include <anki/scene/SceneNode.h>
#include <anki/resource/CollisionResource.h>

namespace anki
{

/// @addtogroup scene
/// @{

/// Node that gets affected by physics.
class BodyNode : public SceneNode
{
public:
	BodyNode(SceneGraph* scene, CString name);

	~BodyNode();

	ANKI_USE_RESULT Error init(const CString& resourceFname);

private:
	class FeedbackComponent;

	CollisionResourcePtr m_rsrc;
	PhysicsBodyPtr m_body;
};
/// @}

} // end namespace anki
