Collider shapes

    For to interact, you need to set their shape in the Property Grid. You can specify a geometric shape, or use a collider shape asset.

    Components can have multiple intersecting shapes, and don't have to match the entity model, if it has one. Each shape has additional properties including size, orientation, offset, and so on.

    Box

    Capsule

    The capsule shape is especially useful for character components, as its curved base lets the entity move to higher planes (eg when climbing staircases).

    PropertyDescription
    Is 2DMakes the capsule infinitely flat in one dimension.
    LengthThe length of the capsule.
    RadiusThe radius of the capsule.
    OrientationThe axis along which the shape is stretched (X, Y, or Z).
    Local offsetThe capsule position relative to its entity.
    Local rotationThe capsule rotation in XYZ values.

    Cone

    Cylinder

    PropertyDescription
    HeightThe length of the cylinder.
    RadiusThe radius of the cylinder.
    OrientationSets the axis along which the shape is stretched (X, Y, or Z).
    Local offsetThe cylinder position relative to its entity.
    Local rotationThe cylinder rotation in XYZ values.

    Infinite plane

    Infinite plane

    The infinite plane covers an infinite distance across one dimension.Think of it like a wall or floor stretching into the distance for ever.You can use several infinite planes together to box users in and stop them "tunneling" outside the level.

    PropertyDescription
    NormalWhich vector (X, Y, or Z) is perpendicular to the plane. For example, to make an infinite floor, set the normal property to: X:0, Y:1, Z:0.
    OffsetThe plane position relative to its entity.

    Assigns a collider shape from a collider shape asset (see Collider shape assets below).

    You can also create collider shape assets and use them as your collider shape. This means you can edit the collider shape asset and automatically update it in every entity that uses it.

    • In the Asset View (bottom by default), click Add asset.

    • Select Physics, then select the shape you want to create.

    Game Studio creates the new collider shape asset in the CollisionMeshes folder.

    Create a collider shape asset from a model

    This is useful to quickly create a collider shape that matches a model.

    • Select Physics > Convex hull.

      The Select an asset window opens.

    Select model

    • Browse to the model asset you want to create a collider shape asset from and click OK.

    Game Studio creates a collider shape asset from the model.

    • Under the static collider or rigidbody properties, under Collider Shapes, select Asset.

    • Next to Shape, specify the collider shape asset you want to use.

    Select collider shape asset