Force.h
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- // Force.h: interface for the Force class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_FORCE_H__C9B448CD_5814_4343_85F9_ECE3844609FA__INCLUDED_)
- #define AFX_FORCE_H__C9B448CD_5814_4343_85F9_ECE3844609FA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "DynamicsObject.h"
- class Force : public DynamicsObject, public NodeObject
- {
- public:
- Force(Force& src);
- Force(TCHAR* name);
- void SetDirection(VECTOR3 direction);//设置力的方向
- VECTOR3 GetDirection();
- void PreDraw();
- void Apply();
- virtual ~Force();
- private:
- VECTOR3 direction;
- };
- #endif // !defined(AFX_FORCE_H__C9B448CD_5814_4343_85F9_ECE3844609FA__INCLUDED_)