cpBBWrapVect edge case?

Discuss any Chipmunk bugs here.
Post Reply
viblo
Posts: 206
Joined: Tue Aug 21, 2007 3:12 pm
Contact:

cpBBWrapVect edge case?

Post by viblo »

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
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: cpBBWrapVect edge case?

Post by slembcke »

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/
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests