Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
54 lines
907 B
C++
54 lines
907 B
C++
#pragma once
|
|
|
|
#include "vector3d.h"
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~ Motion ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class Motion
|
|
{
|
|
public:
|
|
#if defined(USE_SIGNATURE)
|
|
friend int Is_Signature_Bad(const volatile Motion *);
|
|
#endif
|
|
|
|
Vector3D linearMotion;
|
|
Vector3D angularMotion;
|
|
|
|
static const Motion Identity;
|
|
|
|
//
|
|
// Constructors
|
|
//
|
|
Motion() {}
|
|
Motion(const Motion& motion);
|
|
Motion(const Vector3D& t, const Vector3D& q)
|
|
{
|
|
Check(&t);
|
|
Check(&q);
|
|
linearMotion = t;
|
|
angularMotion = q;
|
|
}
|
|
|
|
//
|
|
// Assignment operators
|
|
//
|
|
Motion& operator=(const Motion& p);
|
|
|
|
//
|
|
// Equality operator
|
|
//
|
|
Logical operator==(const Motion&) const;
|
|
|
|
//
|
|
// Origin motion
|
|
//
|
|
Motion& AddScaled(const Motion& source, const Motion& delta, Scalar t);
|
|
|
|
//
|
|
// Support functions
|
|
//
|
|
friend std::ostream& operator<<(std::ostream& stream, const Motion& p);
|
|
Logical TestInstance() const;
|
|
static Logical TestClass();
|
|
};
|