This commit is contained in:
trung09122002
2026-09-21 09:48:02 +07:00
parent 122bd9c8ba
commit 9fa3d3f362

View File

@@ -221,15 +221,6 @@ function v3dBuildRobot(r) {
body.position.set(r.body_off_x || 0, clear + bodyH / 2 - r.wheel_radius, 0);
g.add(body);
// Mui chi huong +X, de nhin mot cai la biet dau la truoc.
const nose = new THREE.Mesh(
new THREE.ConeGeometry(bodyW * 0.16, bodyL * 0.22, 16),
new THREE.MeshLambertMaterial({ color: 0x8ec5ff }));
nose.rotation.z = -Math.PI / 2;
nose.position.set((r.body_off_x || 0) + bodyL / 2,
clear + bodyH * 0.85 - r.wheel_radius, 0);
g.add(nose);
// Hai banh chu dong, cach nhau `wheel_sep`.
for (const side of [-1, 1]) {
const w = new THREE.Mesh(