Nostalgia  2.1.5
TileEdgeCollider Class Reference

Edge型のTileCollider More...

Inheritance diagram for TileEdgeCollider:
TileCollider< EdgeCollider2D >

Public Member Functions

override bool IsUpdateCollider (Collider2D collider, Vector2 cellPos)
 コライダーの更新が必要か判定する More...
 

Public Attributes

bool loop = true
 頂点の始点と終点がつながるかどうか More...
 
Vector2[] points
 頂点の配列 More...
 

Protected Member Functions

override bool UpdateColliderProperty (Collider2D collider)
 
- Protected Member Functions inherited from TileCollider< EdgeCollider2D >
override System.Type GetRequireColliderType ()
 要求するCollider2Dの型を取得する。 More...
 

Detailed Description

Edge型のTileCollider

Member Function Documentation

override bool IsUpdateCollider ( Collider2D  collider,
Vector2  cellPos 
)

コライダーの更新が必要か判定する

Parameters
colliderCollider
cellPosCellの位置
Returns
更新が必要ならtrue
override bool UpdateColliderProperty ( Collider2D  collider)
protected

Member Data Documentation

bool loop = true

頂点の始点と終点がつながるかどうか

Vector2 [] points
Initial value:
= new Vector2[] {
new Vector2(-0.5f,0.5f),
new Vector2(0.5f,0.5f),
new Vector2(0.5f,-0.5f),
new Vector2(-0.5f,-0.5f),
}

頂点の配列