Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 17th Oct 2010 05:15
I am reviewing the demo's for Box2d.

In the "Mini" demo the command "load(tyreBody1, "tyre.b2c", 2)" is used, but there is no sign of this command in the documentation. I assume it assigns the image to tyreBody1?

Also, what is the .b2c file?

Well at least we know he ain't rabid!
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 17th Oct 2010 13:20 Edited at: 17th Oct 2010 13:21
The "load" command is just a function in the code (scroll down and you will see it), it is not part of the plugin. The .b2c file contains lists of x,y coordinates which describe the shape of the car, and the "load" function creates collision shapes for those coordinates.

[b]
DcZee
23
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 17th Oct 2010 18:19
Awesome Diggsey, thanks for the clarification.

Well at least we know he ain't rabid!

Login to post a reply

Server time is: 2026-07-22 22:07:17
Your offset time is: 2026-07-22 22:07:17