-
Notifications
You must be signed in to change notification settings - Fork 7
server.services.Rotation.Rotation
server/services/Rotation.Rotation
Serves to replicate body rotation from the client to other clients by having the client send their joint CFrame info through a server event and then have that info sent to other clients within a distance of them back through a client event.
OnInit
▸ onInit(): void
Hooks the UpdateRotation method to the UpdateRotation server event.
void
OnInit.onInit
src/server/services/Rotation.ts:13
▸ Static Private GetPlayersWithinDist(player, distance): Player[]
| Name | Type |
|---|---|
player |
Player |
distance |
number |
Player[]
players that are within the distance passed in of the player passed in.
src/server/services/Rotation.ts:49
▸ Static Private UpdateRotation(player, waist, neck, leftshoulder, rightshoulder): void
Takes in a player and their joint cframes and fires an UpdateRotation client event to everyone within a certain distance of that player so that the player's body rotation will replicate.
| Name | Type |
|---|---|
player |
Player |
waist |
CFrame |
neck |
CFrame |
leftshoulder |
CFrame |
rightshoulder |
CFrame |
void
- client/controllers/SpringCam
- client/controllers/Direction
- client/controllers/Rotation
- client/controllers/Shake
- client/controllers/Input
- server/modules/InputParser
- server/modules/Middleware
- server/modules/AnimPlayer
- server/modules/Action
- server/modules/Defer