i am having a problem with returing a positon for my body from another class
Globals has a function which will return vector position depending on the parameter i send
//////////////////Global
@interface Globals {
}
@property( readonly) CGPoint getGroupPosition;
-(CGPoint) getGroupPosition:(int)group;
@end
@implementation Globals
-(CGPoint) getGroupPosition:(int)group{
return CGPointMake(300,50);}
///////then in my game class
@class Globals;
@interface RedEnemy
Globals *global;
@end
@implementation RedEnemy
/////
CGPoint r =[global getGroupPosition];