Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

ofxBox2d - Circle generation faild. weird error

$
0
0

@icq4ever wrote:

hi! I needs some help!

now I'm implement ofxOpenCV with kinect, and want to interaction with ofxBox2d objects.

so far everything's fine. except generating circle objects.
follow the instruction from ofxBox2d github, code is like this

ofApp.h

//ofBox2d
ofxBox2d						physics;	// the box2d world
vector <shared_ptr<ofxBox2dCircle> >	circles;	// default box2d circles

ofApp.cpp

shared_ptr<ofxBox2dCircle> circle = shared_ptr<ofxBox2dCircle>(new ofxBox2dCircle);
circle.get()->setPhysics(3.0, 0.53, 0.9);

but xCode said that this is error.

"Cannot initialize object parameter of type 'ofxBox2dBaseShape' with expression of type 'ofxBox2dCircle'

can anyone help me?

I'm using oF 0.8.4. OS X 10.10 yosemite Xcode 6.4

+

oh and I read compatibility section from github

git clone git://github.com/vanderlin/ofxBox2d.git
cd ofxBox2d
git checkout 008

but 'git checkout 008' is not working for me.

Posts: 5

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Latest Images

Trending Articles



Latest Images