hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 788 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [RigidBody](./server.rigidbody.md) > [getCollidersByTag](./server.rigidbody.getcollidersbytag.md)
## RigidBody.getCollidersByTag() method
Gets the colliders of the rigid body by tag.
**Signature:**
```typescript
getCollidersByTag(tag: string): Collider[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
tag
</td><td>
string
</td><td>
The tag to filter by.
</td></tr>
</tbody></table>
**Returns:**
[Collider](./server.collider.md)<!-- -->\[\]
The colliders of the rigid body with the given tag.