1 side collide collision group?

Hello!

Is it possible to have two collision groups in which one can touch the second but in which the second can’t touch the first?

Thanks !

Yep! This is possible. I dont know much about them but i know this link will help!

I’ve looked at this page before but it didn’t seem to contain anything that would help me achieve what I want.

I’m not sure exactly what you mean. What is the expected result of having a collision group able to collide with another but not the other way around? Are you asking how to implement a one-way door?

Imagine it as a wall going straigth which is able to push objects whitout them blocking its way.

You don’t need to implement custom collision groups for this. You can probably just anchor it and push it using a script with CFrame. It should move slowly enough to push anything un-anchored in it’s way.

You can also look to use Roblox physics to push it, but I’m unfamiliar with what you’d need to do. I prefer writing in my own stuff, which may or may not be the best way of going about things.

Yeah, I didn’t mention it but I’m using this with a custom destruction script so everything is anchored by default.

Yeah, seems like you’ll want to use a script to push the wall using CFrame. You’re likely to run into issues if you depend on the Touched event, however. There are ways of fixing this, such as checking for overlapping parts each time it updates.

1 Like

I did try using CFrame and unanchoring it every few frame which could work but sometime the wall glitched out and flunged everything. I will try checking for overlapps tough as in this exact case the physic of it doesn’t really matter.

[Final Answer]
No possible to have this type of collision filtering.