gaesup-world 0.8.52 → 0.8.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,9 +87,11 @@ export var RigidBodyRef = forwardRef(function (props, ref) {
87
87
  return (_jsxs(RigidBody, __assign({ colliders: false, ref: ref, name: props.name, rotation: euler()
88
88
  .set(0, ((_a = props.rotation) === null || _a === void 0 ? void 0 : _a.clone().y) || 0, 0)
89
89
  .clone(), userData: props.userData, type: props.rigidbodyType || (props.isActive ? "dynamic" : "fixed"), sensor: props.sensor, onIntersectionEnter: props.onIntersectionEnter, onCollisionEnter: props.onCollisionEnter }, props.rigidBodyProps, { children: [_jsx(CapsuleCollider, { ref: props.colliderRef, args: [(size.y / 2 - size.x) * 1.2, size.x * 1.2], position: [0, (size.y / 2 + size.x / 2) * 1.2, 0] }), _jsxs(InnerGroupRef, { objectNode: objectNode, animationRef: animationRef, nodes: nodes, ref: props.innerGroupRef, isActive: props.isActive, isRiderOn: props.isRiderOn, enableRiding: props.enableRiding, ridingUrl: props.ridingUrl, offset: props.offset, parts: props.parts, children: [props.children, props.parts &&
90
+ props.parts.length > 0 &&
90
91
  props.parts.map(function (_a, key) {
91
92
  var url = _a.url, color = _a.color;
92
- console.log(url, color);
93
+ if (!url)
94
+ return null;
93
95
  return (_jsx(PartsGroupRef, { url: url, isActive: props.isActive, componentType: props.componentType, currentAnimation: props.currentAnimation, color: color }, key + url));
94
96
  })] })] })));
95
97
  });
@@ -91,11 +91,11 @@ export interface controllerOtherPropType extends RigidBodyProps {
91
91
  debug?: boolean;
92
92
  }
93
93
  export type partType = {
94
- url: string;
95
- color?: string;
96
- position?: THREE.Vector3;
97
- rotation?: THREE.Euler;
98
- scale?: THREE.Vector3;
94
+ url?: string | undefined;
95
+ color?: string | undefined;
96
+ position?: THREE.Vector3 | undefined;
97
+ rotation?: THREE.Euler | undefined;
98
+ scale?: THREE.Vector3 | undefined;
99
99
  };
100
100
  export type partsType = partType[];
101
101
  export type controllerType = controllerOtherPropType & urlsType & Partial<gaesupControllerContextPropType> & callbackType & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaesup-world",
3
- "version": "0.8.52",
3
+ "version": "0.8.55",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",