SpringBoneCollisionCapsule3D
A capsule shape collision that interacts with SpringBoneSimulator3D.
A capsule shape collision that interacts with SpringBoneSimulator3D.
A capsule shape collision that interacts with SpringBoneSimulator3D.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
SpringBoneCollisionCapsule3DConstructor
public SpringBoneCollisionCapsule3D();Properties4
HeightProperty
public float Height { get; set; }The capsule's full height, including the hemispheres.
Note: The SpringBoneCollisionCapsule3D.Height of a capsule must be at least twice its SpringBoneCollisionCapsule3D.Radius. Otherwise, the capsule becomes a sphere. If the SpringBoneCollisionCapsule3D.Height is less than twice the SpringBoneCollisionCapsule3D.Radius, the properties adjust to a valid value.
InsideProperty
public bool Inside { get; set; }If true, the collision acts to trap the joint within the collision.
MidHeightProperty
public float MidHeight { get; set; }The capsule's height, excluding the hemispheres. This is the height of the central cylindrical part in the middle of the capsule, and is the distance between the centers of the two hemispheres. This is a wrapper for SpringBoneCollisionCapsule3D.Height.
RadiusProperty
public float Radius { get; set; }The capsule's radius.
Note: The SpringBoneCollisionCapsule3D.Radius of a capsule cannot be greater than half of its SpringBoneCollisionCapsule3D.Height. Otherwise, the capsule becomes a sphere. If the SpringBoneCollisionCapsule3D.Radius is greater than half of the SpringBoneCollisionCapsule3D.Height, the properties adjust to a valid value.
Methods8
GetHeightfloat
public float GetHeight();floatGetMidHeightfloat
public float GetMidHeight();floatGetRadiusfloat
public float GetRadius();floatIsInsidebool
public bool IsInside();boolSetHeightvoid
public void SetHeight(float height);| Name | Type | Default |
|---|---|---|
height | float | — |
SetInsidevoid
public void SetInside(bool enabled);| Name | Type | Default |
|---|---|---|
enabled | bool | — |
SetMidHeightvoid
public void SetMidHeight(float midHeight);| Name | Type | Default |
|---|---|---|
midHeight | float | — |
SetRadiusvoid
public void SetRadius(float radius);| Name | Type | Default |
|---|---|---|
radius | float | — |