C# Class OpenTKEngine.Ball

Inheritance: System.Entity
显示文件 Open project: jikoriko/OpentkEngine

Public Properties

Property Type Description
IsColliding bool
Radius int
Rotation float
RotationSpeed float
Velocity Vector3

Public Methods

Method Description
Ball ( Vector3 pos, Sprite sprite, int radius, Type type ) : System
CheckCollision ( Ray ray ) : float
Die ( ) : void
Render ( ) : void
Update ( ) : void

Private Methods

Method Description
CheckCollisionWithRay ( float x1, float y1, float dx, float dy ) : List

Method Details

Ball() public method

public Ball ( Vector3 pos, Sprite sprite, int radius, Type type ) : System
pos Vector3
sprite Sprite
radius int
type System.Type
return System

CheckCollision() public method

public CheckCollision ( Ray ray ) : float
ray Ray
return float

Die() public method

public Die ( ) : void
return void

Render() public method

public Render ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

IsColliding public_oe property

public bool IsColliding
return bool

Radius public_oe property

public int Radius
return int

Rotation public_oe property

public float Rotation
return float

RotationSpeed public_oe property

public float RotationSpeed
return float

Velocity public_oe property

public Vector3 Velocity
return Vector3