Collider: Difference between revisions

From Fancade Wiki
(Created the page)
 
m (Add image)
 
Line 4: Line 4:


The collider of any custom block that isn't a [[Script Block]] can be changed by pressing the gear button.
The collider of any custom block that isn't a [[Script Block]] can be changed by pressing the gear button.
 
[[File:Collider settings.png|thumb|right|Settings for setting the collider and type of the [[custom block]].]]
[[File:collider settings]]


A block's collider can have one of 3 possible values:
A block's collider can have one of 3 possible values:

Latest revision as of 12:05, 21 June 2025

Collider, also called Hitbox is what determines whether the block is solid or Pass Through.

When a collision between two blocks with colliders happens, it can be detected by a Collision sensor.

The collider of any custom block that isn't a Script Block can be changed by pressing the gear button.

Settings for setting the collider and type of the custom block.

A block's collider can have one of 3 possible values:

  • None: no collider, this object will not interact with other objects using physics.
  • Box: The shape of the collider consist of one or multiple boxes.
  • Sphere: The shape of the collider consist of one or multiple spheres.

Details

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. 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. This means sphere colliders are always spheres, they cannot be ellipsoids.