Hello Forum <3
I have a small test scene made in the editor.
Then a model modelled in 3Ds Max(A house with a door and 3 windows-"Very basic"), and assigned a physics file using PhyGen (Collision Tree).
Whenever I load the model using the editor Or Lua Script editor, it won't collide with any of the other physics bodies.
Well. The 2 boxes collide with eachother, and my scene of course - but Not the model itself.
--x1
box1Body = CreateBodyBox(1,1,1)
box1 = CreateCube()
box1:SetParent(box1Body)
box1Body:SetPosition(Vec3(0,12,0))
box1Body:SetMass(5)
--x2
box2Body = CreateBodyBox(1,1,1)
box2 = CreateCube()
box2:SetParent(box2Body)
box2Body:SetPosition(Vec3(0.3,24,0))
box2Body:SetMass(5)
hus = LoadModel("abstract::lua_hus01.gmf") - Tried LoadMesh too, same thing.
husBody = LoadBody("abstract::lua_hus01.phy",hus) - (Path, Parent)
hus:SetPosition(Vec3(3,0,0))
hus:SetScale(Vec3(0.2,0.2,0.2))
husBody:SetScale(Vec3(0.2,0.2,0.2))
husBody:SetPosition(Vec3(3,0,0))
husBody:SetMass(5)
--Collision Types
box1Body:SetCollisionType(1)
box2Body:SetCollisionType(1)
husBody:SetCollisionType(1) - Changed this value to several other numbers, including "hus" - Just to try.
grund = LoadScene("abstract::slope.sbx")
grund:SetPosition(Vec3(0,-.5,0))
grund:SetScale(Vec3(2,2,2))
Hope it makes sence