fumanshoo Posted December 19, 2012 Share Posted December 19, 2012 Shouldn't this make my houses collide with my character? It's being given no collision properties despite me setting the collision type. sceneBuildings = LoadMesh("abstract::general visualization of the slums.gmf") sceneBuildings: SetCollisionType(COLLISION_PROP) Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 19, 2012 Share Posted December 19, 2012 Use LoadModel for loading the gmf. Collisions only work on bodies and terrains. LoadModel loads a body with its child mesh. or just place the gmf into your scene using the editor and set the collision type property via the property dialog using the basic script: require("scripts/class") local class=CreateClass(...) Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
fumanshoo Posted December 19, 2012 Author Share Posted December 19, 2012 Well I was loading it into a scene at first and adding the basic properties and what not, but I didn't like that because I prefer to load separate models and use the scene editor for the terrain. Really nice that I can manipulate it both ways. But thank you. I had no idea what the difference between a mesh and a model was in that aspect until now haha. Quote Link to comment Share on other sites More sharing options...
karmacomposer Posted December 23, 2012 Share Posted December 23, 2012 I, too, cannot get collision to work with a house model. I did what was mentioned above and tried each and every collision type. None worked. I tried using Phygen - the resulting file, when copied to the proper place, didn't seem to do anything (and I did shut the engine down and restart it). Any help would be appreciated. Mike. Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
cassius Posted December 24, 2012 Share Posted December 24, 2012 You shouln;t need phygen for a house. Put house in editor and set its properties or if you prefer code use LoadModel and set entitytype to 1. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
karmacomposer Posted December 24, 2012 Share Posted December 24, 2012 You shouln;t need phygen for a house. Put house in editor and set its properties or if you prefer code use LoadModel and set entitytype to 1. I did import it and set properties. In game play mode, player character in editor just walks right through it. I've tried every collision setting! Now what? Mike Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
macklebee Posted December 24, 2012 Share Posted December 24, 2012 Turn on the 'Show Physics' option in the editor by 'Tools>Options..>Display' and check to see if the house's physics body is aligned with the house's visual mesh. And cassius is correct, you do not need phygen for this. Delete the PHY file from the house's file directory and restart the editor. Open up the scene and try again. Confirm that the house collision type property is set correctly. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
karmacomposer Posted December 24, 2012 Share Posted December 24, 2012 That did it. Thank you. Mike Quote MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives My Patreon page: https://www.patreon.com/michaelfelkercomposer My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213 Custom synths and sounds - http://www.supersynths.com Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.