MagicaCapsuleCollider

Properties


direction

public enum Direction
{
[InspectorName("X-Axis")]
X = 0,

[InspectorName("Y-Axis")]
Y = 1,

[InspectorName("Z-Axis")]
Z = 2,
}

/// <summary>
/// Reference transform axis.
/// </summary>
public Direction direction = Direction.X;

reverseDirection

/// <summary>
/// Reverse direction.
/// 方向を逆転させる
/// </summary>
public bool reverseDirection = false;

alignedOnCenter

/// <summary>
/// 中央揃え
/// Aligned on center.
/// </summary>
public bool alignedOnCenter = true;

radiusSeparation

/// <summary>
/// 半径をStart/End別々に設定
/// Set radius separately for Start/End.
/// </summary>
public bool radiusSeparation = false;

center

/// <summary>
/// トランスフォームからの中心ローカルオフセット
/// Center local offset from transform.
/// </summary>
public Vector3 center;

Methods


SetSize

/// <summary>
/// set size.
/// </summary>
/// <param name="startRadius"></param>
/// <param name="endRadius"></param>
/// <param name="length"></param>
public void SetSize(float startRadius, float endRadius, float length)

GetSize

/// <summary>
/// get size.
/// (x:start radius, y:end radius, z:length)
/// </summary>
/// <returns></returns>
public override Vector3 GetSize()

UpdateParameters

/// <summary>
/// パラメータの反映
/// すでに実行状態の場合はこの関数を呼び出さないとプロパティの変更が反映されません。
/// Reflection of parameters.
/// If it is already running, property changes will not be reflected unless this function is called.
/// </summary>
public void UpdateParameters()