Improving the physics model by using
multiple submodels In this tutorial, I will explain how to improve the physical models of
some of the more complex items in Thief. As you have probably noticed, if you pick up a shovel,
and then drop it again, most of its model falls through the floor, until
it reaches the approximate centre, where it rotates around to lie on its
side. Thief only supports four shapes for physical
models. They are: In order to improve our shovel's physics,
first find the Shovel (-479) archetype, and
then change its Physics->Model->Type
property. Set the # Submodels to 2. This
gives the object a second physics sphere.
By doing so, you have changes the size of both the spheres that make
up the physical model, and offset the second one by -2.20
units vertically, so that it is near the blade at the bottom of the shovel. Go into game mode and try it out! You can add more submodels if you wish, but since you can only control the size and offset of the first two, its anyone's guess exactly what size DromEd will choose to give any subsequent ones. As you can see, the use of additional submodels greatly increases the realism of certain objects, even if it can take a bit of experimentation to get all the properties right. Make note, however, that the player can drop items in such a way as to have their lower phyiscal model appear inside a solid, which causes it to be ignored, and the object to drop to the higher sphere. |