Collision Summaries API: Detailed Collision Data From The Engine

I think you used to be able to do so with the Touched event as well, but the deferred signal broke it all
Since this one is not a signal but a callback, I assume it fires instantly, unlike signals

1 Like

Is there any particular reason as to why it’s called BindToCollisionSummaries? It seems like a weird, overcomplicated name. Wouldn’t a simpler name like BindToCollision be much cleaner?

The naming convention seems to suggest that this is a good name for a function: BindToRunserviceEventDeltaTimes. A bit of an exaggeration, but it should be pretty clear why this makes no sense.

Likewise. As it is currently, you can’t even make classic kill bricks because standard character leg parts have collisions disabled.

1 Like

This is so awesome!! I can’t wait to get my hands on this and start building!

i think most developper-savy people are going to get amazed by this, but im wondering, how much performance costs ?

Not much perf cost. Perf will always be dominated by cost of the actual collisions themselves. Reporting this is relatively tiny

8 Likes

…Were the type annotation forgotten?
Not only is the callback inside of :BindToCollisionSummaries equal to any, but there’s no such thing called CollisionSummary type!

billede

This is equivalent to:

BasePart:BindToCollisionSummaries(
	any
): RBXScriptConnection

Or…

BindToCollisionSummaries: (BasePart, any) -> (RBXScriptConnections)

When it should’ve been:

BindToCollisionSummaries: (BasePart, ({CollisionSummary}) -> ()) -> (RBXScriptConnections)
5 Likes

Pretty clear to me. They’re not letting you bind code to the actual physics step happening 4x per frame, instead they’re only giving you summaries of the collisions that happened in the physics step/s that ran during that frame.

3 Likes

dude… i love the updates and all.. but if i had a penny for something i’ve implemented just for roblox to implement it natively within a month. my god, i feel like i’m constantly playing catchup

2 Likes

I am rather bummed this does not have CanCollide = false support, I wanted to make a vehicle hitbox as opposed to using a specific collidable section of the vehicle :frowning:

4 Likes

Any updates on this being fixed? Would be great to use in our game Greenville but we cannot at the moment due to the interactions of vehicles with terrain water crashing clients.

1 Like

Ran a code to see BindToCollisionSummaries triggers engine-level error (process termination) as I tested on client, server, and roblox server themselves.
image

1 Like

one of the best features to be added to roblox period absolutely perfect

yeah fix is on the way to release already

1 Like

bump, @qCecil2 can we have this

edit: my use case is an r6 humanoid, whose arms and legs by default, have no collision, and enabling it is not an alternative

5 Likes

yeah, i need this for the same reason.

1 Like

Using this alongside a server authority fixed update loop is very awkward because you have to coordinate it all with attributes, that makes the already late information (collision info comes after a collision) take longer before the simulation loop gets the chance to see it. Could we have a second method which returns the latest collision summary directly?