hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
108 lines (50 loc) • 1.55 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [Simulation](./server.simulation.md) > [intersectionsWithRawShape](./server.simulation.intersectionswithrawshape.md)
## Simulation.intersectionsWithRawShape() method
Gets the intersections with a raw shape.
**Signature:**
```typescript
intersectionsWithRawShape(rawShape: RawShape, position: Vector3Like, rotation: QuaternionLike, options?: FilterOptions): IntersectionResult[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
rawShape
</td><td>
[RawShape](./server.rawshape.md)
</td><td>
The raw shape to get intersections with.
</td></tr>
<tr><td>
position
</td><td>
[Vector3Like](./server.vector3like.md)
</td><td>
The position of the shape.
</td></tr>
<tr><td>
rotation
</td><td>
[QuaternionLike](./server.quaternionlike.md)
</td><td>
The rotation of the shape.
</td></tr>
<tr><td>
options
</td><td>
[FilterOptions](./server.filteroptions.md)
</td><td>
_(Optional)_ The options for the intersections.
</td></tr>
</tbody></table>
**Returns:**
[IntersectionResult](./server.intersectionresult.md)<!-- -->\[\]
The intersections.
## Remarks
rawShape can be retrieved from a simulated or unsimulated collider using [Collider.rawShape](./server.collider.rawshape.md)<!-- -->.