Let me use collision groups on the client

As a developer, it is impossible too hard to change a local part’s collision group

You can’t make a collision group from the client. This makes sense.

But you also can’t set a part’s collision group from the client. This makes less sense. I don’t see why this would be the case.

I need to be able to do this so that I can have local debris that don’t collide with the character.

Here are the methods I want enabled:

PhysicsService.CollisionGroupContainsPart
PhysicsService.CollisionGroupsAreCollidable
PhysicsService.GetCollisionGroupId
PhysicsService.GetCollisionGroupName
PhysicsService.GetPartCollisionGroup
29 Likes

I would say “too hard” instead of impossible. It is possible to change the collision group id to ones that were already created on the server.

It’s not. The methods error.

Oops, should have specified changing the actual property BasePart.CollisionGroupId.

I’m looking in to some collision group issues already. We can probably do this.

It’ll probably take a while to ship once it’s done; for client side API changes we usually have to wait for mobile to be force upgraded so it’s consistently supported across all versions…

1 Like

??

part.CollisionId = num

I know it took a while, but I have a change ready for this. Should be able to do this soon-ish.

Might still be a month or so before I can enable this. Client API change, need to wait for all clients to have it.

9 Likes

Has this been added yet? It would be very useful to me

2 Likes

Is this enabled yet?

Yep. It’s been enabled for a while now. The following APIs should be usable from the client:

  • SetPartCollisionGroup (Note: doing this from the client won’t replicate back to the server)
  • CollisionGroupContainsPart
  • CollisionGroupsAreCollidable
  • GetCollisionGroupId
  • GetCollisionGroupName
  • GetCollisionGroups
  • GetMaxCollisionGroups

Basically the collision group info and the collision masks for each group is read-only on the client. We let you read info about existing groups and assign groups to parts (be careful with this), but not create or change anything about the groups themselves.

16 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.