SOLVED: Stop objects from being pushed over.

Hi,
I have an man and he can move left & right.
If he runs into a wall he’ll collide with it and stop.

But if he runs into a static object thats head height, he’ll walk himself over.

More clearly, his lower part will continue moving and topple himself over.

Ideally i’d like him to stop like he would a normal full wall.
I’ve attempted to use ‘object.isFixedRotation’ to prevent him from rotating backwards and falling over.

Is there a command that’ll make him ‘unknock around-able’
I have tried looking in the docs.

Cheers! [import]uid: 91798 topic_id: 15689 reply_id: 315689[/import]

Physics… :wink:

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15689 reply_id: 57911[/import]

What was the issue with isFixedRotation?

It would help to know how he is being “knocked around” to advise you on that - but density makes a big difference. [import]uid: 52491 topic_id: 15689 reply_id: 57953[/import]

The issue was that .isFixedRotation didn’t seem to prevent him from falling over when his head hits something.
Like failing at a limbo contest.

However, i’ve solved this now, i was calling .isFixedRotation before i called physics.addBody()

I called it after instead and now he’s as stiff as a botox’ed face.
…That’s a good thing.

Thanks for the attention on my thread ^^. [import]uid: 91798 topic_id: 15689 reply_id: 57998[/import]

No worries; thanks for clarifying what your problem was with isFixedRotation - it always helps to know for future reference :slight_smile:

Peach [import]uid: 52491 topic_id: 15689 reply_id: 58154[/import]