返回介绍

ClothSphereColliderPair 布料球碰撞器对

发布于 2019-12-18 15:37:32 字数 2025 浏览 856 评论 0 收藏 0

struct in UnityEngine

Description 描述

A pair of SphereColliders used to define shapes for Cloth objects to collide against.

一对球碰撞体用于定义布料物体的反向碰撞的形状。

A ClothSphereColliderPair can contain either a single valid SphereCollider instance (with the second one being null), or a pair of two SphereColliders. In the former cases the ClothSphereColliderPair just represents a single SphereCollider for the cloth to collide against. In the latter case, it represents a conic capsule shape defined by the two spheres, and the cone connecting the two. Conic capsule shapes are useful for modelling limbs of a character.

Select the cloth object to see a visualization of Cloth colliders shapes in the scene view.

Variables 变量

firstThe first SphereCollider of a ClothSphereColliderPair.
球碰撞器对的第一个球碰撞体。
secondThe second SphereCollider of a ClothSphereColliderPair.
球碰撞器对的第二个球碰撞体。

Constructors 构造

ClothSphereColliderPairCreates a ClothSphereColliderPair. If only one SphereCollider is given, the ClothSphereColliderPair will define a simple sphere. If two SphereColliders are given, the ClothSphereColliderPair defines a conic capsule shape, composed of the two spheres and the cone connecting the two.
创建一个球碰撞器对。如果只给定一个碰撞球,ClothSphereColliderPair将会定义一个简单的球。如果给定二个碰撞球,ClothSphereColliderPair定义了一个圆锥形,ClothSphereColliderPair包含了二个球和圆锥这两个组成。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文