C# Class BoidsSimulationOnGPU.GPUBoids

Inheritance: MonoBehaviour
ファイルを表示 Open project: kodai100/Unity_BoidsSimulationOnURP

Public Properties

Property Type Description
AlignmentNeighborhoodRadius float
AlignmentWeight float
AvoidWallWeight float
BoidsCS ComputeShader
CohesionNeighborhoodRadius float
CohesionWeight float
MaxSpeed float
MaxSteerForce float
SeparateNeighborhoodRadius float
SeparateWeight float
WallSize Vector3

Public Methods

Method Description
GetBoidDataBuffer ( ) : ComputeBuffer
GetMaxObjectNum ( ) : int
GetSimulationAreaCenter ( ) : Vector3
GetSimulationAreaSize ( ) : Vector3

Private Methods

Method Description
InitBuffer ( ) : void
OnDestroy ( ) : void
OnDrawGizmos ( ) : void
ReleaseBuffer ( ) : void
Simulation ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

GetBoidDataBuffer() public method

public GetBoidDataBuffer ( ) : ComputeBuffer
return ComputeBuffer

GetMaxObjectNum() public method

public GetMaxObjectNum ( ) : int
return int

GetSimulationAreaCenter() public method

public GetSimulationAreaCenter ( ) : Vector3
return Vector3

GetSimulationAreaSize() public method

public GetSimulationAreaSize ( ) : Vector3
return Vector3

Property Details

AlignmentNeighborhoodRadius public_oe property

public float AlignmentNeighborhoodRadius
return float

AlignmentWeight public_oe property

public float AlignmentWeight
return float

AvoidWallWeight public_oe property

public float AvoidWallWeight
return float

BoidsCS public_oe property

public ComputeShader BoidsCS
return ComputeShader

CohesionNeighborhoodRadius public_oe property

public float CohesionNeighborhoodRadius
return float

CohesionWeight public_oe property

public float CohesionWeight
return float

MaxSpeed public_oe property

public float MaxSpeed
return float

MaxSteerForce public_oe property

public float MaxSteerForce
return float

SeparateNeighborhoodRadius public_oe property

public float SeparateNeighborhoodRadius
return float

SeparateWeight public_oe property

public float SeparateWeight
return float

WallSize public_oe property

public Vector3 WallSize
return Vector3