dutils.physics

Public Imports

dutils.skeleton
public import dutils.skeleton;
Undocumented in source.

Members

Enums

Axis
enum Axis

Enumeration for representing an axis.

Plane
enum Plane

Enumeration for representing a plane.

Functions

accMove
void accMove(Point moveto, uint tbf, Skeleton tomove, real speed, real accdec)

accMove moves all the points in a skeleton to a specified point with a specified time gap between movements all while accelerating the speed.

affectByGravity
void affectByGravity(Skeleton[] towatch, Skeleton skele, uint tbf, Gravity gravity)

affectByGravity affects a skeleton by a specified gravity struct. Send any integer to the thread containing the function to terminate it.

decMove
void decMove(Point moveto, uint tbf, Skeleton tomove, real speed, real accdec)

decMove moves all the points in a skeleton to a specified point with a specified time gap between movements all while deaccelerating the speed.

detectCollision
Collision detectCollision(Skeleton[] towatch, Skeleton skele, real time)

detectCollision takes a skeleton, a wait time, and an array of skeletons, and detects collisions, returning true if so.

move
void move(Point moveto, uint tbf, Skeleton tomove, real speed)

move moves all the points in a skeleton to a specified point with a specified time gap between moving the points.

rotate
void rotate(real degrees, Plane plane, ulong frames, ulong rate, Skeleton skele)

Rotates a skeleton by an amount in radians in anamount of frames with a specifed time between frames.

Mixin templates

__mov__general__
mixintemplate __mov__general__(string func)
Undocumented in source.
find
mixintemplate find(string[] tofind)
Undocumented in source.

Structs

Collision
struct Collision

Collision is a structure representing if a collision happened, and the object collided with.

Gravity
struct Gravity

Struct for representing gravity.

Meta

License

GPL-3.0NOTICE: THIS CODE OBVIOUSLY SUCKS. IT WILL BE DELETED AND REPLACED WITH SOMETHING ACTUALLY USUABLE.