Jump to content

[SOLVED] Model falling through floor


xtreampb
 Share

Recommended Posts

So i have a model in the editor and another being loaded in code. all the settings are the same, same model being loaded with the same phy file being loaded but the one being loaded by code is falling through the floor while the one in the editor collides and reacts as expected. this is possibly a bug but i wanted to make sure i wasn't doing something wrong first.

 

~Xtreampb~

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Link to comment
Share on other sites

ok update so i removed my collision hook and it no longer falls through, but why does my collision hook allow my moddel to fall through?

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Link to comment
Share on other sites

ok everyone i found my error thanks for the quick response. Best programming community in the world hands down :)

 

My mistake was that my block breaks apart and the broken models need to have sweep collision set to enabled.

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

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