How to make a heavy and hard to move object?

Really simple... but is it possible to make a heavy object thats hard to move? I need to make something that is hard to push along the ground with the character that you control. It needs to only move when hit at high speed (because it's going to be very heavy).

I've been trying all different kinds of settings in the component parameters for a square, but nothing is working... so is it possible? because i'm sure it would be pretty simple and i'm just missing something ❓
Have you tried changing the density of the fixture for the body?
Yeah i have, and it still slides over the floor just as easy, but with the friction also made higher it's almost how i'd like it, but i can still push it easier than i can move it by hitting it at high speed. I need it to only move when hit at high speed.

Also, how do i give something it's own gravity? in the WCK demo theres a example of this but i cant see any difference to the parameters that would be doing this...
Found out how to do it 🙂 ... put a Joint on the object, and set the type to Friction, then set a high maxForce.

Now all i need to do is figure out how to give an object its own gravitational force? so it draws objects in to it.
To override gravity on a single object, set gravityMod = true, then gravityScale or gravityAngle. For example gravityScale = -1 will be inverse gravity.

You can also extend wck.World and override getGravityFor to customize the gravity on all objects.

You can also override wck.BodyShape's modifyGravity function to implement gravity at the BodyShape level. Only called if gravityMod = true.

You can also add gravity objects to the world, name them, then set BodyShape's customGravityName variable, or hook your gravity objects up to sensors.
Cheers mayobutter, but how do i make an object draw other objects towards it? Like a planet does (radial gravity?).
For instance in the demo, the 5th example called Animated Capsule Gravity all the objects are pulled to the center. How do i do that? No matter how much i increase gravityScale it wont have that affect.
That demo is actually using an animated instance of the gravity.Capsule class. The gravity is just animated to mimic the BodyShape. It wouldn't work for more than one gravity source.

If you're looking to simulate planet-like gravity I suggest trying to port boristhebrave's gravity controller.
Can someone provide an example for changing the wck.BodyShape's modifyGravity function in wck? I would like to think I had it, but it is not working.

Appreciate the help!
Hey bjlong,

Sounds like you are trying to override the modifyGravity function. Make sure you set gravityMod = true on any BodyShape you want to have the modifyGravity function called for.

Original thread: https://box2d.org/forum/viewtopic.php?t=7023