Objective-C and SetUserPositionRequest
Posted: 28 Jan 2014, 16:48
Hello! I'm trying to run the SetUserPositionRequest to start the Proximity_Update_List in my mmoRoom. However the Vec3D in objective-c is expecting the NSNumber datatype and I'm receiving this message on the server because IT is expecting a float/int:
"java.lang.IllegalArgumentException: User coordinates don't match numeric type of the Room's Area Of Interest (AOI)"
My question is how do I send an int/float from the Vec3D class in objective-c when it is expecting a NSNumber?
[smartFox send:[SetUserPositionRequest requestWithPosition:[[Vec3D alloc] initWithX:[NSNumber numberWithFloat:player.position.x] Y:[NSNumber numberWithFloat:player.position.y]] mmoRoom:[smartFox lastJoinedRoom]]];
Here is my SetUserPositionRequest.
Thank you.
"java.lang.IllegalArgumentException: User coordinates don't match numeric type of the Room's Area Of Interest (AOI)"
My question is how do I send an int/float from the Vec3D class in objective-c when it is expecting a NSNumber?
[smartFox send:[SetUserPositionRequest requestWithPosition:[[Vec3D alloc] initWithX:[NSNumber numberWithFloat:player.position.x] Y:[NSNumber numberWithFloat:player.position.y]] mmoRoom:[smartFox lastJoinedRoom]]];
Here is my SetUserPositionRequest.
Thank you.