Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 249 characters in body; edited tags
Source Link
TomSawyer
  • 243
  • 3
  • 9

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinates of objects on every devices. Does cocos physics return randomly result?


After deep digging, i realize that even i set specific velocity for one object in same device will return different result.

So i don't think this is about the devices, Chipmunk returns different result with the same input parameter!

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinates of objects on every devices. Does cocos physics return randomly result?

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinates of objects on every devices. Does cocos physics return randomly result?


After deep digging, i realize that even i set specific velocity for one object in same device will return different result.

So i don't think this is about the devices, Chipmunk returns different result with the same input parameter!

added 1 character in body; edited tags
Source Link
TomSawyer
  • 243
  • 3
  • 9

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinatecoordinates of objects on every devices. Does cocos physics return randomly result?

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinate of objects on every devices. Does cocos physics return randomly result?

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinates of objects on every devices. Does cocos physics return randomly result?

Source Link
TomSawyer
  • 243
  • 3
  • 9

Get different result on different devices (same resolution) after setVelocity

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices.

I've tested on iPhone 5 (on simulator) and iPhone 6 (real device) The Director::getInstance()->getOpenGLView()->getFrameSize() returns both devices is 640x1136 pixels

But i see they have different result after the animation , its about 2-5 pixels. I really don't know why.

I'm making a multiple player game so i need exactly same coordinate of objects on every devices. Does cocos physics return randomly result?