Исправлены баги, добавлен код Object.proto, в который будут подставлятяь 3д объекты для последующего спавна

This commit is contained in:
Даниил Грабарь
2025-12-23 21:48:18 +10:00
parent 37da67abe5
commit 6acbd7ca6f
8 changed files with 74 additions and 21 deletions
@@ -0,0 +1,39 @@
#VRML_SIM R2025a utf8
# Describe the functionality of your PROTO here.
# template language: javascript
PROTO Object [
field SFVec3f translation 0 0 0
field SFRotation rotation 0 0 1 0
field SFString name "my_object"
field MFString object_path []
field SFNode physics Physics{ }
]
{
Solid {
translation IS translation
rotation IS rotation
name IS name
contactMaterial "tool"
children [
Shape {
appearance PBRAppearance {
roughness 1
metalness 0
}
geometry Mesh {
url IS object_path
}
}
]
boundingObject Mesh {
url IS object_path
}
physics IS physics
}
}