Tag Info

New answers tagged

0

You say you have tried setting `ignoreAnchorPointForPosition(true), but have you tried setting it to false? CCLayer init method calls ignoreAnchorPointForPosition(true), which basically tells cocos to ignore the anchor point for positioning. You can set it to false and it should respect the anchor point for position.


0

This code snippet appears to simply compare two euclidean distances; the ordered distance and (what I'm assuming) is the maximum distance allowed (based on a movement radius?). Euclidean distance is normally calculated as: sqrt(dx^2 + dy^2) ; (where dx is delta x and dy is delta y) If you just want to compare two distances, to see which is greater, you ...



Top 50 recent answers are included