Collider: Difference between revisions

Added note about physics center of mass and improved wording
m (Add image)
(Added note about physics center of mass and improved wording)
Line 13: Line 13:
== Details ==
== Details ==


Each part of a block not connected to itself by [[Glue]] will have its own collider.
* Each part of a block not connected to itself by [[Glue]] will have its own collider.


The size of the collider depends on the size of that part.
* The size of the collider depends on the size of that part.<br>For box colliders, it is a box with sides equal to the maximum size of the part in each of the 3 axes.<br>For sphere colliders, it is a sphere with the radius being the maximum length of the part in any of the 3 axes. This means sphere colliders are always spheres, they cannot be ellipsoids.
For box colliders, it will be a box with sides equal to the maximum size of the part in 3 axes.
 
For sphere colliders, it is the same, except it is a sphere with the radius being the maximum length of a part in any axis.
* If the block's physics type is Normal, the collider's center of mass will be the center of the block, even if it is outside the collider, which can produce unwanted results if physics are applied to that object. This can be changed by setting the type to Physics.
This means sphere colliders are always spheres, they cannot be ellipsoids.


[[Category:Scripting]]
[[Category:Scripting]]