• Studio

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • CapsuleCollider

    Inherits from: Collider

    CapsuleCollider is a collider component in Unity shaped like a capsule, suitable for elongated spherical objects where SphereCollider and BoxCollider aren't ideal fits. It detects collisions between GameObjects, allowing scripted reactions to these events. CapsuleColliders can be resized and repositioned to match GameObject shapes accurately.

    Properties

    Defines the center position of the CapsuleCollider relative to the GameObject, adjustable to move the Collider from the GameObject's center.

    radius

    number

    Controls the size of the CapsuleCollider by adjusting its radius, allowing expansion or contraction.

    height

    number

    Adjusts the vertical dimension of the CapsuleCollider, affecting its height.

    direction

    number

    Sets the orientation axis of the Collider's height, with values "0" for X-axis, "1" for Y-axis, and "2" for Z-axis.

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.