Jump to content
Sign in to follow this  
scooterperpetual

Objects Fall Through Table

Recommended Posts

Not sure if this is the right place to post this if not Im sorry.

I have been messing around with the editor and MCC 3d Editor. Anyways when I place an item on a table it just falls through the table not to the ground but it just sort of dissapears in the table basically the surface of the table is off with the texture.

If anyone has some insight on how to fix this I would really appreciate it :)

Share this post


Link to post
Share on other sites
Not sure if this is the right place to post this if not Im sorry.

I have been messing around with the editor and MCC 3d Editor. Anyways when I place an item on a table it just falls through the table not to the ground but it just sort of dissapears in the table basically the surface of the table is off with the texture.

If anyone has some insight on how to fix this I would really appreciate it :)

You have the "_this enableSimulation false" as a preset in MCC 3D editor just press add.

Share this post


Link to post
Share on other sites

Bump

I still can't seem to get them to stay on the table when I try to pick them up. I've added this to all of them but it still doesn't work: _this allowDamage false; _this enableSimulation false;

Share this post


Link to post
Share on other sites
I still can't seem to get them to stay on the table when I try to pick them up.

So when you try and pick them up they fall off of the table or disappear? I'm having a hard time understanding the issue.

Share this post


Link to post
Share on other sites
Bump

I still can't seem to get them to stay on the table when I try to pick them up. I've added this to all of them but it still doesn't work: _this allowDamage false; _this enableSimulation false;

If you have just an normal editor placed object you have to use a non-local "this" so in other words take out the "_" and I also set the elevation to 0.8m so it sits nicely right above the surface of the table:

this enableSimulation false;
this allowDamage false;

But along with what Iceman asked, are you placing objects on a table/surface, to then be able to pick them up and move them, then place them down again?

Share this post


Link to post
Share on other sites

This is all you need to place items on the table. Put this in the init of the item and position it over the table.

this setPos [getPos this select 0, getPos this select 1, 0.8];this enableSimulation false;

See my previous post above.

Share this post


Link to post
Share on other sites

I often uses the code that Beerkan uses...Where 0.8 is the height. You can play around with it..different tables/objects different heights ;-)

@Beerkan:

But what about the campinglight (on)? If you use: this enableSimulation false on the campinglight it switches itself off :-(

Share this post


Link to post
Share on other sites
I often uses the code that Beerkan uses...Where 0.8 is the height. You can play around with it..different tables/objects different heights ;-)

@Beerkan:

But what about the campinglight (on)? If you use: this enableSimulation false on the campinglight it switches itself off :-(

Simplest way to get round that would be attachTo I guess.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×