-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhysics_kernels.h
More file actions
20 lines (15 loc) · 862 Bytes
/
Physics_kernels.h
File metadata and controls
20 lines (15 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Solid;
class VboManager;
class VisualBuffer;
void calculateGravityForces(Solid* solid);
void testCollision(Solid* solid, PolyShape* bVolume, bool* intersect);
void constrainIntersectingPoints(Solid* solid, bool* intersect);
void fixIntersectingPoints(Solid* solid, bool* intersect);
void applyForceToIntersectingNodes(Solid* solid, float3 force, bool* intersect);
void applyDisplacementToIntersectingNodes(Solid* solid, float3 disp, bool* intersect);
void moveIntersectingNodeToSurface(Solid* solid, PolyShape* bVolume, bool* intersect);
void colorSelection(Solid* solid, VisualBuffer* colorBuffer, bool* intersect);
void applyFloorConstraint(Solid* solid, float floorYPosition);
void calculateInternalForces(Solid* solid, VboManager* vbom);
void updateDisplacement(Solid* solid);
void loadArrayIntoVBO(float4* array, unsigned int size, float4* vbo);