Jump to content

Collision Problems...


fumanshoo
 Share

Recommended Posts

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(...)

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

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. happy.png

Link to comment
Share on other sites

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.

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

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

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

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.

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

That did it. Thank you.

 

Mike

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...