mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[12632] Revert previous commit (see Notes)
This commit is contained in:
parent
1cd806c02e
commit
ef445ea523
1462 changed files with 9689 additions and 7080 deletions
37
dep/include/g3dlite/G3D/PhysicsFrameSpline.h
Normal file
37
dep/include/g3dlite/G3D/PhysicsFrameSpline.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
@file PhysicsFrameSpline.h
|
||||
|
||||
@author Morgan McGuire, http://graphics.cs.williams.edu
|
||||
*/
|
||||
#ifndef G3D_PhysicsFrameSpline_h
|
||||
#define G3D_PhysicsFrameSpline_h
|
||||
|
||||
#include "G3D/platform.h"
|
||||
#include "G3D/PhysicsFrame.h"
|
||||
#include "G3D/Spline.h"
|
||||
|
||||
namespace G3D {
|
||||
|
||||
/*
|
||||
A subclass of Spline that keeps the rotation field of a
|
||||
PhysicsFrame normalized and rotating the short direction.
|
||||
|
||||
\sa UprightFrameSpline
|
||||
*/
|
||||
class PhysicsFrameSpline : public Spline<PhysicsFrame> {
|
||||
public:
|
||||
PhysicsFrameSpline();
|
||||
|
||||
/** Accepts a table of properties, or any valid PhysicsFrame specification for a single control*/
|
||||
PhysicsFrameSpline(const Any& any);
|
||||
|
||||
/** Clear and then reset all values from the any */
|
||||
PhysicsFrameSpline& operator=(const Any& any);
|
||||
|
||||
virtual void correct(PhysicsFrame& frame) const;
|
||||
virtual void ensureShortestPath(PhysicsFrame* A, int N) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue