We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5149fb7 commit 770d631Copy full SHA for 770d631
1 file changed
scripts/entities/tree.lua
@@ -5,16 +5,11 @@ local classData = EntityRegistry.ClassBuilder()
5
classData:AddProperty("scale", { type = "float", default = 1, isNetworked = true })
6
7
classData:On("init", function (self)
8
- local physSettings = {
9
- kind = "static",
10
- objectLayer = Constants.ObjectLayerStatic
11
- }
12
-
13
if CLIENT then
14
local model = AssetLibrary.GetModel("tree-01-" .. math.random(1, 4))
15
16
local gfx = self:AddComponent("graphics")
17
- gfx:AttachRenderable(model, Constants.RenderMaskOther)
+ gfx:AttachRenderable(model, Constants.RenderMask3D)
18
19
local node = self:GetComponent("node")
20
node:Scale(Vec3f(self:GetProperty("scale")))
0 commit comments