Core/Misc: update g3dlite lib (#2904)

* Core/Misc: update g3dlite lib

* update

Co-authored-by: Francesco Borzì <[email protected]>
This commit is contained in:
Viste
2020-07-30 12:35:45 +02:00
committed by GitHub
co-authored by Francesco Borzì
parent 91bbbf08eb
commit fcaf91b8b2
183 changed files with 13257 additions and 8021 deletions
+17 -2
View File
@@ -20,16 +20,31 @@ namespace G3D {
*/
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);
bool operator==(const PhysicsFrameSpline& a) const;
bool operator!=(const PhysicsFrameSpline& a) const {
return ! ((*this) == a);
}
/** Mutates all underlying PhysicsFrames by scaling their translation by \param scaleFactor */
void scaleControlPoints(float scaleFactor);
virtual void correct(PhysicsFrame& frame) const;
virtual void ensureShortestPath(PhysicsFrame* A, int N) const;
virtual Any toAny(const std::string& myName) const override {
return Spline<PhysicsFrame>::toAny(myName);
}
Any toAny() const {
return toAny("PFrameSpline");
}
};
}