用户工具

站点工具


侧边栏

script:unityengine:classes:clothspherecolliderpair:clothspherecolliderpair

ClothSphereColliderPair 布料球碰撞器对

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包含了二个球和圆锥这两个组成。
script/unityengine/classes/clothspherecolliderpair/clothspherecolliderpair.txt · 最后更改: 2016/08/02 05:25 (外部编辑)