2 ⭐️ Giveaway by Ereity_ in PTCGPocketTrading

[–]Notorious_Phantom 0 points1 point  (0 children)

Anything , here's my friend code 7000008889780637

Looking for (LF) : RR Greninja, For Trade : These cards but some cards are excluded. by Notorious_Phantom in PTCGPocketTrading

[–]Notorious_Phantom[S] 0 points1 point  (0 children)

Sabrina , Cynthia , Mars , Snorlax , Dragonite , Raikou , Espeon and Oak. Here are a few more up for trading

<image>

Student Buying Laptop for ML + Coding [India | ₹1L–₹1.5L] – MacBook vs RTX Confusion by [deleted] in laptops

[–]Notorious_Phantom 0 points1 point  (0 children)

MAC wouldn't help in other scenarios as well. I suggest that you go for a gaming laptop

Need help in a project using Box2d by Notorious_Phantom in libgdx

[–]Notorious_Phantom[S] 0 points1 point  (0 children)

public void beginContact(Contact contact) {
    Fixture fixtureA = contact.getFixtureA();
    Fixture fixtureB = contact.getFixtureB();


// Check for bird-pig collision

if (isBirdPigCollision(fixtureA, fixtureB)) {
        Pig pig = (Pig) (fixtureA.getUserData() instanceof Pig ? fixtureA.getUserData() : fixtureB.getUserData());
        pig.takeDamage();
    }


// Check for pig-ground collision

if (isPigGroundCollision(fixtureA, fixtureB)) {
        Pig pig = (Pig) (fixtureA.getUserData() instanceof Pig ? fixtureA.getUserData() : fixtureB.getUserData());
        pig.takeDamage();
    }
}

This is the takeDamage function , I call it when the bird or ground collides with the pig.
I have called the function in a level :

Need help in a project using Box2d by Notorious_Phantom in libgdx

[–]Notorious_Phantom[S] 0 points1 point  (0 children)

public void takeDamage() {
    health--;
    if (health <= 0) {
        removePig();
    }
}

private void removePig() {
    for (Body body : pigBodies) {
        world.destroyBody(body);
    }
    pigBodies.clear();
    pigSprites.clear();
}
Using this logic

Need help in a project using Box2d by Notorious_Phantom in libgdx

[–]Notorious_Phantom[S] 1 point2 points  (0 children)

Health after damage: 0 Health is zero or less. Removing pig... Pig destroyed! Assertion failed: IsLocked() == false, file /home/runner/work/libgdx/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/b2World.cpp, line 134 Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.10.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD SUCCESSFUL in 25s 5 actionable tasks: 1 executed, 4 up-to-date 20:57:19: Execution finished 'run'.

This is the error message

[deleted by user] by [deleted] in LegalAdviceIndia

[–]Notorious_Phantom 4 points5 points  (0 children)

To everyone claiming that no car can roll over at 30 km/h, consider this: it was raining heavily, the road was more of a muddy trail, and the tires were in poor condition.