You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bezier curve based animation now properly samples curves based on x (not t) except for quaternion curve animations, entity mouse events now contain ray depth information, entity editor will now select closest entity at first click, added visibility layers to SceneEntityInstance and visibility layer sheets to the entity editor
Copy file name to clipboardExpand all lines: Core/Contents/Include/PolyBezierCurve.h
+13-20Lines changed: 13 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,10 @@
26
26
27
27
#include"PolyGlobals.h"
28
28
#include"PolyVector3.h"
29
+
#include"PolyVector2.h"
29
30
#include<vector>
30
31
31
32
32
-
#defineBUFFER_CACHE_PRECISION100
33
-
34
33
namespacePolycode {
35
34
36
35
/**
@@ -143,12 +142,6 @@ namespace Polycode {
143
142
*/
144
143
voidaddControlPoint2d(Number x, Number y);
145
144
146
-
/**
147
-
* Returns the height of the curve at a specified point on the curve. Heights are cached into a buffer with a finite cache precision to speed up the curve usage in animation. If you need to quickly get 2D height out of a curve and you don't care about total precision, use this method.
148
-
* @param a Normalized (0-1) position along the curve.
149
-
* @return Height value at specified position.
150
-
*/
151
-
Number getHeightAt(Number a);
152
145
153
146
/**
154
147
* Returns the 3d point of the curve at a specified point on the curve.
@@ -163,33 +156,33 @@ namespace Polycode {
163
156
* @return 3d point at specified position.
164
157
*/
165
158
Vector3 getPointBetween(Number a, BezierPoint *bp1, BezierPoint *bp2);
166
-
159
+
167
160
voidclearControlPoints();
168
-
169
-
/**
170
-
* Rebuilds the height cache buffers for 2d height curves.
0 commit comments