MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / validateTransform

Function validateTransform

src/world/validate.ts:146–154  ·  view source on GitHub ↗
(errors: string[], path: string, t: TransformData)

Source from the content-addressed store, hash-verified

144}
145
146function validateTransform(errors: string[], path: string, t: TransformData): void {
147 if (!t) {
148 errors.push(path + ' is missing');
149 return;
150 }
151 checkVec3(errors, path + '.position', t.position);
152 checkVec3(errors, path + '.rotation', t.rotation);
153 checkVec3(errors, path + '.scale', t.scale);
154}
155
156function validateTerrain(errors: string[], t: TerrainData): void {
157 if (!(t.width > 0) || !(t.depth > 0)) {

Callers 2

validateEntityFunction · 0.85
validatePrefabChildFunction · 0.85

Calls 2

checkVec3Function · 0.85
pushMethod · 0.45

Tested by

no test coverage detected