update
This commit is contained in:
@@ -221,15 +221,6 @@ function v3dBuildRobot(r) {
|
|||||||
body.position.set(r.body_off_x || 0, clear + bodyH / 2 - r.wheel_radius, 0);
|
body.position.set(r.body_off_x || 0, clear + bodyH / 2 - r.wheel_radius, 0);
|
||||||
g.add(body);
|
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`.
|
// Hai banh chu dong, cach nhau `wheel_sep`.
|
||||||
for (const side of [-1, 1]) {
|
for (const side of [-1, 1]) {
|
||||||
const w = new THREE.Mesh(
|
const w = new THREE.Mesh(
|
||||||
|
|||||||
Reference in New Issue
Block a user