C# Class hyades.physics.Body

Afficher le fichier Open project: zfedoran/bubblebound Class Usage Examples

Méthodes publiques

Свойство Type Description
aabb BoundingSquare
base_shape Shape
bitmaskx Bitmask
bitmasky Bitmask
count int
curr_angle float
curr_shape Shape
damping float
force Vector2
is_dirty bool
is_merging bool
is_static bool
omega float
pointmass_list hyades.physics.PointMass[]
position Vector2
prev_angle float
scale Vector2
velocity Vector2

Méthodes publiques

Méthode Description
ApplyForce ( Vector2 &point, Vector2 &force ) : void
ApplyInternalForces ( double elapsed ) : void
Body ( Shape shape, float mass ) : System
Contains ( Vector2 &point ) : bool
GetClosestPoint ( Vector2 point, Vector2 &closest, Vector2 &normal, int &pointA, int &pointB, float &edgeD ) : float
GetClosestPointMass ( Vector2 point, float &dist ) : PointMass
GetClosestPointOnEdge ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
GetClosestPointOnEdgeSquared ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
ToString ( ) : string
ToStringSimple ( ) : string
Update ( double elapsed ) : void
UpdateBodyPositionVelocityForce ( double elapsed ) : void

Private Methods

Méthode Description
GetBodyPositionVelocityForce ( Vector2 &position, Vector2 &velocity, Vector2 &force ) : void
RotateShape ( double elapsed ) : void
SetBodyPositionVelocityForce ( Vector2 position, Vector2 velocity, Vector2 force ) : void
UpdataAABB ( double elapsed ) : void
UpdatePointMasses ( double elapsed ) : void

Method Details

ApplyForce() public méthode

public ApplyForce ( Vector2 &point, Vector2 &force ) : void
point Vector2
force Vector2
Résultat void

ApplyInternalForces() public méthode

public ApplyInternalForces ( double elapsed ) : void
elapsed double
Résultat void

Body() public méthode

public Body ( Shape shape, float mass ) : System
shape Shape
mass float
Résultat System

Contains() public méthode

public Contains ( Vector2 &point ) : bool
point Vector2
Résultat bool

GetClosestPoint() public méthode

public GetClosestPoint ( Vector2 point, Vector2 &closest, Vector2 &normal, int &pointA, int &pointB, float &edgeD ) : float
point Vector2
closest Vector2
normal Vector2
pointA int
pointB int
edgeD float
Résultat float

GetClosestPointMass() public méthode

public GetClosestPointMass ( Vector2 point, float &dist ) : PointMass
point Vector2
dist float
Résultat PointMass

GetClosestPointOnEdge() public méthode

public GetClosestPointOnEdge ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
point Vector2
edgeNum int
hitPt Vector2
normal Vector2
edgeD float
Résultat float

GetClosestPointOnEdgeSquared() public méthode

public GetClosestPointOnEdgeSquared ( Vector2 point, int edgeNum, Vector2 &hitPt, Vector2 &normal, float &edgeD ) : float
point Vector2
edgeNum int
hitPt Vector2
normal Vector2
edgeD float
Résultat float

ToString() public méthode

public ToString ( ) : string
Résultat string

ToStringSimple() public méthode

public ToStringSimple ( ) : string
Résultat string

Update() public méthode

public Update ( double elapsed ) : void
elapsed double
Résultat void

UpdateBodyPositionVelocityForce() public méthode

public UpdateBodyPositionVelocityForce ( double elapsed ) : void
elapsed double
Résultat void

Property Details

aabb public_oe property

public BoundingSquare,hyades.physics aabb
Résultat BoundingSquare

base_shape public_oe property

public Shape,hyades.physics base_shape
Résultat Shape

bitmaskx public_oe property

public Bitmask,hyades.physics bitmaskx
Résultat Bitmask

bitmasky public_oe property

public Bitmask,hyades.physics bitmasky
Résultat Bitmask

count public_oe property

public int count
Résultat int

curr_angle public_oe property

public float curr_angle
Résultat float

curr_shape public_oe property

public Shape,hyades.physics curr_shape
Résultat Shape

damping public_oe property

public float damping
Résultat float

force public_oe property

public Vector2 force
Résultat Vector2

is_dirty public_oe property

public bool is_dirty
Résultat bool

is_merging public_oe property

public bool is_merging
Résultat bool

is_static public_oe property

public bool is_static
Résultat bool

omega public_oe property

public float omega
Résultat float

pointmass_list public_oe property

public PointMass[],hyades.physics pointmass_list
Résultat hyades.physics.PointMass[]

position public_oe property

public Vector2 position
Résultat Vector2

prev_angle public_oe property

public float prev_angle
Résultat float

scale public_oe property

public Vector2 scale
Résultat Vector2

velocity public_oe property

public Vector2 velocity
Résultat Vector2