Search found 4 matches

by horacebury
Mon Mar 04, 2013 9:22 am
Forum: Box2D tutorial discussion
Topic: Normalize
Replies: 4
Views: 15700

Re: Normalize

Hey, thank you. That's very helpful. One last question:

What is the value of "b2_epsilon" - I've looked it up and assume that the logic in the code will work in other languages (I'm using Lua with Corona SDK) if I supplement 0.00002

Does that sound reasonable?
by horacebury
Thu Feb 28, 2013 9:28 am
Forum: Box2D tutorial discussion
Topic: Normalize
Replies: 4
Views: 15700

Normalize

In the Buoyancy tutorial, under the section "Applying simple drag" (http://www.iforce2d.net/b2dtut/buoyancy) there is a code snippet: //find relative velocity between object and fluid b2Vec2 velDir = fixtureB->GetBody()->GetLinearVelocityFromWorldPoint( centroid ) - fixtureA->GetBody()->Ge...
by horacebury
Wed Feb 27, 2013 5:37 pm
Forum: Box2D tutorial discussion
Topic: What does b2Cross do?
Replies: 2
Views: 12104

Re: What does b2Cross do?

Thank you!
by horacebury
Wed Feb 27, 2013 10:01 am
Forum: Box2D tutorial discussion
Topic: What does b2Cross do?
Replies: 2
Views: 12104

What does b2Cross do?

Old versions of Box2D appear to have a library function called B2Cross. I've seen it used in this tutorial in the ComputeCentroid function:

http://www.iforce2d.net/b2dtut/buoyancy

I cannot find it in the current Box2D documentation. Does anyone know what it does?