C# Class hyades.physics.Physics

Exibir arquivo Open project: zfedoran/bubblebound Class Usage Examples

Public Properties

Property Type Description
aabb BoundingSquare
body_list List
cell Vector2
chain_list List
collision_list List
elasticity float
friction float
on_aabb_collision Body>.Action
on_collision Action
on_penetration Body>.Action
penetration_count int
penetration_threshold float
size Vector2

Public Methods

Method Description
Add ( Body body ) : void
Add ( Chain chain ) : void
Initialize ( ) : void
IsPointInsideAnyBody ( Vector2 point ) : bool
MoveDistantBodies ( Vector2 position, float near, float far ) : void
Physics ( ) : System
Remove ( Body body ) : void
Remove ( Chain chain ) : void
SetWorldLimits ( Vector2 min, Vector2 max ) : void
Update ( double elapsed ) : void
UpdateBitmask ( Body body ) : void

Method Details

Add() public method

public Add ( Body body ) : void
body Body
return void

Add() public method

public Add ( Chain chain ) : void
chain Chain
return void

Initialize() public method

public Initialize ( ) : void
return void

IsPointInsideAnyBody() public method

public IsPointInsideAnyBody ( Vector2 point ) : bool
point Vector2
return bool

MoveDistantBodies() public method

public MoveDistantBodies ( Vector2 position, float near, float far ) : void
position Vector2
near float
far float
return void

Physics() public method

public Physics ( ) : System
return System

Remove() public method

public Remove ( Body body ) : void
body Body
return void

Remove() public method

public Remove ( Chain chain ) : void
chain Chain
return void

SetWorldLimits() public method

public SetWorldLimits ( Vector2 min, Vector2 max ) : void
min Vector2
max Vector2
return void

Update() public method

public Update ( double elapsed ) : void
elapsed double
return void

UpdateBitmask() public method

public UpdateBitmask ( Body body ) : void
body Body
return void

Property Details

aabb public_oe property

public BoundingSquare,hyades.physics aabb
return BoundingSquare

body_list public_oe property

public List body_list
return List

cell public_oe property

public Vector2 cell
return Vector2

chain_list public_oe property

public List chain_list
return List

collision_list public_oe property

public List collision_list
return List

elasticity public_oe property

public float elasticity
return float

friction public_oe property

public float friction
return float

on_aabb_collision public_oe property

public Action on_aabb_collision
return Body>.Action

on_collision public_oe property

public Action on_collision
return Action

on_penetration public_oe property

public Action on_penetration
return Body>.Action

penetration_count public_oe property

public int penetration_count
return int

penetration_threshold public_oe property

public float penetration_threshold
return float

size public_oe property

public Vector2 size
return Vector2