We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1dc2f commit 89917e2Copy full SHA for 89917e2
src/dagon/ui/freeview.d
@@ -200,13 +200,24 @@ class FreeviewComponent: EntityComponent
200
void setTarget(Vector3f pos)
201
{
202
target = pos;
203
- smoothTarget = pos;
+ smoothTarget = target;
204
}
205
206
void setTargetSmooth(Vector3f pos)
207
208
209
210
+
211
+ void setTarget(Entity e)
212
+ {
213
+ target = e.positionAbsolute;
214
215
+ }
216
217
+ void setTargetSmooth(Entity e)
218
219
220
221
222
void translateTarget(Vector3f pos)
223
0 commit comments