예제 #1
0
//------------------------------------------------
void ofxBox2dCircle::addAttractionPoint(float x, float y, float amt) {
	addAttractionPoint(ofVec2f(x, y), amt);
}
예제 #2
0
//----------------------------------------
void ofxBox2dPolygon::addAttractionPoint (float x, float y, float amt) {
    addAttractionPoint(ofVec2f(x, y), amt);
}
예제 #3
0
파일: Particle.cpp 프로젝트: stdmtb/3s1e
//--------------------------------------------------------------
void Particle::addAttractionPoint(ofVec2f pt, float scl) {
    addAttractionPoint(pt.x, pt.y, scl);
}
예제 #4
0
//----------------------------------------
void ofxBox2dConvexPoly::addAttractionPoint (float x, float y, float amt) {
    addAttractionPoint(ofVec2f(x, y), amt);
}
예제 #5
0
void ofxBox2dBaseShape::addAttractionPoint(float x, float y, float amt, float minDis) {
	addAttractionPoint(ofVec2f(x, y), amt, minDis);
}
예제 #6
0
//------------------------------------------------
// In ofxBox2dRect.h:
// We compute the force for all four (transformed) corners of the rect.
// This keeps the rect's orientation correct!
void ofxBox2dRect::addAttractionPoint (float fx, float fy, float amt) {
	addAttractionPoint(ofVec2f(fx, fy), amt);
}