Update RingRayLib - GetCollisionRec() function - return an object.
@@ -343,7 +343,9 @@ func CheckCollisionRecs rec1, rec2
return CheckCollisionRecs_2(GPData(rec1), GPData(rec2))
func GetCollisionRec rec1, rec2
- return GetCollisionRec_2(GPData(rec1), GPData(rec2))
+ oVector = new Vector2
+ oVector.setData( GetCollisionRec_2(GPData(rec1), GPData(rec2)) )
+ return oVector
func ImageCrop image, crop
oImage = ImageCrop_2(GPData(image), GPData(crop))
