8 [AddComponentMenu(
"TrueSync/Physics/CapsuleCollider", 0)]
11 [FormerlySerializedAs(
"radius")]
21 return ((CapsuleShape)_body.Shape).Radius;
30 ((CapsuleShape)_body.Shape).Radius = _radius;
35 [FormerlySerializedAs(
"length")]
45 return ((CapsuleShape)_body.Shape).Length;
54 ((CapsuleShape)_body.Shape).Length = _length;
67 Gizmos.DrawWireSphere(Vector3.zero, 1);
73 return Vector3.one *
radius.AsFloat();
Shape Shape
Shape used by a collider.
override Shape CreateShape()
Create the internal shape used to represent a TSCapsuleCollider.
Collider with a capsule shape.
override void DrawGizmos()
Draws the specific gizmos of concrete collider (for example "Gizmos.DrawWireCube" for a TSBoxCollider...
override Vector3 GetGizmosSize()
Returns the gizmos size.
FP radius
Radius of the capsule.
Abstract collider for 3D shapes.
FP length
Length of the capsule.