@esengine/nova-ecs-physics-box2d - v1.0.2
    Preparing search index...

    Class Box2DCollider

    Box2D collider implementation Box2D碰撞器实现

    Implements

    • ICollider
    Index

    Constructors

    Methods

    • Destroy the collider | 销毁碰撞器

      Returns void

    • Get the rigid body this collider is attached to | 获取此碰撞器附加到的刚体

      Returns IRigidBody

    • Get collision filter | 获取碰撞过滤器

      Returns CollisionFilter

    • Get physics material | 获取物理材质

      Returns PhysicsMaterial

    • Get user data | 获取用户数据

      Returns unknown

    • Get whether this is a sensor | 获取是否为传感器

      Returns boolean

    • Set collision filter | 设置碰撞过滤器

      Parameters

      • filter: CollisionFilter

      Returns void

    • Set physics material | 设置物理材质

      Parameters

      • material: PhysicsMaterial

      Returns void

    • Set whether this is a sensor | 设置是否为传感器

      Parameters

      • isSensor: boolean

      Returns void

    • Set user data | 设置用户数据

      Parameters

      • data: unknown

      Returns void