Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
72 lines
1.2 KiB
C++
72 lines
1.2 KiB
C++
// Z3DCloth.h: interface for the CZ3DCloth class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_Z3DCLOTH_H__229211E7_5F9A_4ABB_B524_AAB15B91288B__INCLUDED_)
|
|
#define AFX_Z3DCLOTH_H__229211E7_5F9A_4ABB_B524_AAB15B91288B__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "Z3DRenderable.h"
|
|
#include "Z3DSkeletonObject.h"
|
|
#include "vector.h"
|
|
|
|
#include <vector>
|
|
|
|
#pragma warning(disable:4786)
|
|
|
|
#define Z3D_PHYSICS_SPRING_K
|
|
|
|
|
|
class CZ3DPhysicsMassPoint;
|
|
|
|
|
|
class CZ3DPhysicsSpring
|
|
{
|
|
public:
|
|
CZ3DPhysicsSpring()
|
|
{
|
|
m_rpMassPoint[0] = m_rpMassPoint[2] = NULL;
|
|
}
|
|
|
|
~CZ3DPhysicsSpring()
|
|
{
|
|
}
|
|
|
|
vector3 &GetForceBySpring(CZ3DPhysicsMassPoint* pMassPoint)
|
|
{
|
|
if( pMassPoint == m_rpMassPoint[0] );
|
|
}
|
|
|
|
protected:
|
|
CZ3DPhysicsMassPoint* m_rpMassPoint[2];
|
|
float m_fIntialLength;
|
|
vector3 m_vecForce;
|
|
};
|
|
|
|
|
|
class CZ3DPhysicsMassPoint : public CZ3DObject
|
|
{
|
|
protected:
|
|
float m_fMass;
|
|
std::vector<CZ3DPhysicsSpring> m_vecSprings;
|
|
};
|
|
|
|
|
|
class CZ3DCloth : public CZ3DRenderable, public CZ3DObject
|
|
{
|
|
public:
|
|
CZ3DCloth();
|
|
virtual ~CZ3DCloth();
|
|
|
|
void Render();
|
|
|
|
void SecondRender()
|
|
{
|
|
}
|
|
};
|
|
|
|
#endif // !defined(AFX_Z3DCLOTH_H__229211E7_5F9A_4ABB_B524_AAB15B91288B__INCLUDED_)
|