gfxgfxFreeBASIC Games Directory Forumgfxgfx
gfx gfx
gfx
Welcome, Guest. Please login or register. June 19, 2013, 07:33:20 PM

Login with username, password and session length
11.5.2013 - Added a webpage for the latest FBGD competition.

13.3.2013 - Members registrations temporary disabled. For all membership requests, please email me: lachie13@yahoo.com

30.11.2012 - The ninth issue of BASIC Gaming is out! Read it here: http://games.freebasic.net/forum/index.php?topic=560.0

22.11.2012 - Be sure to check our currently running annual FBGD game making competition. This year's theme is SEASONS OF THE YEAR, 300 $ first place prize, and the competition runs till 18th of February. Link: http://games.freebasic.net/forum/index.php?topic=559.0
gfx
gfx
*
gfxgfx
gfxgfx gfxgfx
gfxgfx Home Help Search Login Register   gfxgfx
gfx gfx
gfx
Pages: 1 [2]
Print
Author Topic: Chipmunk FB (2D Physics Library), and a minigame (compo?)!  (Read 2898 times)
Dr_D
Forum Sage
*****
Gender: Male
Posts: 204


dr_davenstein
View Profile WWW Email
« Reply #15 on: March 16, 2008, 01:35:48 AM »

Has anyone been messing with this? I've been playing around with it a bit and it seems like cpPolyShapeNew() doesn't like it when you try to create a shape with more than 4 vertices. Does anyone know anything about it? I double checked for ccw winding order and everything, so it wasn't that. I didn't find anything in the docs about it, but then I could have overlooked it... wouldn't be the first time.  Cheesy
Logged

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.

John Carmack
Lithium
Recruit
**
Posts: 28


View Profile
« Reply #16 on: March 16, 2008, 06:16:26 AM »

Is it convex?
Logged
Dr_D
Forum Sage
*****
Gender: Male
Posts: 204


dr_davenstein
View Profile WWW Email
« Reply #17 on: March 16, 2008, 10:55:37 AM »

Hmm... Nope. I didn't realize it had to be. I was trying to assign a set of data for a terrain using it. I guess I'll have to use cpSegmentShapeNew() on each line segment. Normally, I use Newton, and it has a function to create a convex hull from a point cloud, so I assumed this was the same thing. Wink


EDIT: Actually, the Newton function creates a "collision tree", which can be concave or convex, but is only used for static collisions, like terrains. cpSegmentShapeNew() seems to be what I was after though.

Has anyone had any luck compiling this lib for linux? If not, does anyone have any idea where we could get the compiled object files? Thanks.  Cheesy
« Last Edit: March 16, 2008, 12:50:22 PM by Dr_D » Logged

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.

John Carmack
Pages: 1 [2]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Cerberus design by Bloc
Valid XHTML 1.0! Valid CSS!
gfx
gfxgfx gfxgfx