cpBBWrapVect edge case?

Discuss any Chipmunk bugs here.

cpBBWrapVect edge case?

Postby viblo » Sat Dec 19, 2009 12:09 pm

I just noticed this behavior of cpBBWrapVect:
Code: Select all
cpBBWrapVect(BB(0,0,10,10), cpVect(10,0)) -> cpVect(10,10)

is this by design? My initial thought was that it would return cpVect(0,0) instead?

I haven't actually any use case for this method and the current behavior might be the desired one. Im just working through the api for pymunk and trying to understand what the different methods does..
http://www.pymunk.org - A python library built on top of Chipmunk to let you easily get cool 2d physics in your python game/app
Posts: 206
Joined: Tue Aug 21, 2007 3:12 pm

Re: cpBBWrapVect edge case?

Postby slembcke » Sat Dec 19, 2009 3:30 pm

Probably not. I think I only ever used that function once though. I'll put it on the list of things to do.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest