@lyinch wrote:
Hey,
I have a scene with gravity, a collision box on my sprite and one around my tile map. My problem is, that my player tilts very slow on edges, and it's like a slow motion movement:The movement solely comes from the physics engine, because I can only move the player on the X and Y axis and can't rotate it. Once the player starts to rotate, it moves like an oscillator with resistance (movement fading out) in slow motion.
I can use this to prohibit the rotation:
spriteBody->setRotationEnable(false);
My question now is, how can I speed it up, that it looks more natural? My sprite should be able to rotate, but faster and come back to the ground faster without the oscillating all the time.
My physics constants:
sprite: PhysicsMaterial(20,0,0.5) mass: setMass(50); velocity max: setVelocityLimit(200); segments: PhysicsMaterial(20,0,0.5) gravity: setGravity(Vec2(0,-200));
Posts: 1
Participants: 1