1
// Copyright (C) 2002-2011 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#ifndef __C_SCENE_NODE_ANIMATOR_FLY_CIRCLE_H_INCLUDED__
6
#define __C_SCENE_NODE_ANIMATOR_FLY_CIRCLE_H_INCLUDED__
8
#include "ISceneNode.h"
14
class CSceneNodeAnimatorFlyCircle : public ISceneNodeAnimator
19
CSceneNodeAnimatorFlyCircle(u32 time,
20
const core::vector3df& center, f32 radius,
21
f32 speed, const core::vector3df& direction,
24
//! animates a scene node
25
virtual void animateNode(ISceneNode* node, u32 timeMs);
27
//! Writes attributes of the scene node animator.
28
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
30
//! Reads attributes of the scene node animator.
31
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
33
//! Returns type of the scene node animator
34
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FLY_CIRCLE; }
36
//! Creates a clone of this animator.
37
/** Please note that you will have to drop
38
(IReferenceCounted::drop()) the returned pointer after calling
40
virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0);
43
// do some initial calculations
47
core::vector3df Center;
48
// up-vector, normal to the circle's plane
49
core::vector3df Direction;
60
} // end namespace scene
61
} // end namespace irr