My game has a Ferris wheel with 4 seats. Each place has a platform on which the hero can lean. When the seat is on an upward trajectory, the hero remains calmly on the platform.
However, when the seat is on a downward path, the Hero moves up / down a little.
I tried a few obvious things: 1. Setting restitution to 0 does not affect. 2. Setting linearDamping to 1 has no effect. 3. Creating the mass of the platform and the hero has no effect. 4. Friction adjustment is not affected.
Here is the body of the physics platform:
supportNode?.physicsBody?.categoryBitMask = PhysicsCategory.ferrisPlatform.rawValue supportNode?.physicsBody?.mass = 1000 supportNode?.physicsBody?.restitution = 0.0 supportNode?.physicsBody?.friction = 0.0 supportNode?.physicsBody?.linearDamping = 1.0
Here is the hero’s body:
self.physicsBody?.linearDamping = 1.0 self.physicsBody?.mass = 30 self.physicsBody?.restitution = 0 self.physicsBody?.friction = 0
Thanks for any advice. Its definitely weird that the hero is great for riding a ferry wheel, but only shows a fancy up / down movement down the road.
source share