1 decade ago by Richard
I'm trying to put a crate in my game world that my player can't walk into. However, I also don't want it to push the player around either.
My player entity is PASSIVE.
If I set the crate to ACTIVE (as suggested in the collision tutorial), then when I walk into it, it moves. I can push it along rather than it being solid.
If I set the crate to FIXED, then it doesn't move when I walk into it. However when it moves because I start changing it's velocity according to other game rules I have, it starts pushing my player along.
I want a crate that just sits there, like a solid object that the player can't pass through, but when moved towards the player, stops if it hits it.
I've tried various combinations of using check to resolve the collision between them and try changing the velocity of each, but can't seem to find the magic combination.
Somehow I want FIXED && LITE. :)
My player entity is PASSIVE.
If I set the crate to ACTIVE (as suggested in the collision tutorial), then when I walk into it, it moves. I can push it along rather than it being solid.
If I set the crate to FIXED, then it doesn't move when I walk into it. However when it moves because I start changing it's velocity according to other game rules I have, it starts pushing my player along.
I want a crate that just sits there, like a solid object that the player can't pass through, but when moved towards the player, stops if it hits it.
I've tried various combinations of using check to resolve the collision between them and try changing the velocity of each, but can't seem to find the magic combination.
Somehow I want FIXED && LITE. :)