summaryrefslogtreecommitdiff
path: root/Bolvis.lua
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-08-27 02:49:55 -0500
committerthe lemons <citrons@mondecitronne.com>2022-08-27 02:50:27 -0500
commita96780e04d22c916921be996a6b99487efc4e569 (patch)
treec83eec2efa53b4f54b56bc0fd750c0c5ad46c920 /Bolvis.lua
parent0e89c14698023c50001fb820c82f2f59b0730b03 (diff)
store the current camera as an attribute of the world
Diffstat (limited to 'Bolvis.lua')
-rw-r--r--Bolvis.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bolvis.lua b/Bolvis.lua
index 8d53c44..cf6a7e8 100644
--- a/Bolvis.lua
+++ b/Bolvis.lua
@@ -20,6 +20,7 @@ local Hand = component(
function Bolvis:init(inst)
inst.hand = self.obj.world:object(Hand {bolvis = self.obj})
inst.camera = self.obj.world:object(Camera {following = self.obj})
+ inst.camera[Camera]:use()
inst.blink = 10
end