Jump to content

Compounds, mass and collision shape


Marcousik
 Share

Recommended Posts

Hello,

 

Is it possible to create for example a compound torus and give it a mass without that it falls through the map ground ? thx for help with this...

 

The problem for me is that the shapes are giving only to he childs-segment so that giving a mass to the parent makes it falls through the map-ground..?

 

 

Link to comment
Share on other sites

If you give the individual segments mass, then it the compound shape will fall apart due to gravity. If you do give the individual segments mass, then just set their collision type to Prop and that should prevent them from falling through the terrain/ground that has a collision type set to Scene.

 

It doesn't appear that you can make the compound objects stay together and have mass inherently. You can give just the parent object in the scene panel mass, but it doesn't make the object non-static. I don't know if this is just an oversight on Josh's part or if this was intentional.

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

Thx I was thinking this too.

 

"You can give just the parent object in the scene panel mass, but it doesn't make the object non-static."

That's not complet true; if you add the parent object a mass and each segment an empty script, it will makes the torus static and stay together BUT falling through the ground...

I think it's due to no existing single shape for compound model.

 

 

Link to comment
Share on other sites

"You can give just the parent object in the scene panel mass, but it doesn't make the object non-static."

That's not complet true; if you add the parent object a mass and each segment an empty script, it will makes the torus static and stay together BUT falling through the ground...

true - not had full cup of coffee yet. hmmm

  • Upvote 1

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

The only thing I can suggest is to fake it by making a cylinder or other primitive the same shape at the same location, use the invisible.mat on it, set its mass, and set its collision type to prop. The parent compound object should have its collision type set to none, and the individual segments have no mass, collision type set to none, and an empty script attached. Then make the parent item of the compound object a child of your invisible primitive object.

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

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