Skip to content

five-on-it / apps/client/src/renderer/ragdoll / RagdollWorld

Interface: RagdollWorld ​

Defined in: apps/client/src/renderer/ragdoll.ts:39

What a ragdoll collides with: the ground's height under a point, and the walls and cars between two points.

Methods ​

cast()? ​

optional cast(ax, ay, az, bx, by, bz): { nx: number; ny: number; nz: number; t: number; } | undefined

Defined in: apps/client/src/renderer/ragdoll.ts:46

The first wall or car between two points: how far along (0 to 1) and its normal; none when the way is clear (or nothing to cast against).

Parameters ​

ax ​

number

ay ​

number

az ​

number

bx ​

number

by ​

number

bz ​

number

Returns ​

{ nx: number; ny: number; nz: number; t: number; } | undefined


ground() ​

ground(x, z, y): number

Defined in: apps/client/src/renderer/ragdoll.ts:41

The height of what carries a point at (x, z) near height y (m).

Parameters ​

x ​

number

z ​

number

y ​

number

Returns ​

number