Apply tendon defaults on fixed and spatial tendons
This commit is contained in:
@@ -167,6 +167,7 @@ public class MjcfImporter {
|
|||||||
if (tendonNode != null) {
|
if (tendonNode != null) {
|
||||||
var tendonsParentObject = CreateGameObjectInParent("tendons", rootObject);
|
var tendonsParentObject = CreateGameObjectInParent("tendons", rootObject);
|
||||||
foreach (var child in tendonNode.OfType<XmlElement>()) {
|
foreach (var child in tendonNode.OfType<XmlElement>()) {
|
||||||
|
_modifiers.ApplyModifiersToElement(child, elementName: "tendon");
|
||||||
if (child.Name == "fixed") {
|
if (child.Name == "fixed") {
|
||||||
CreateGameObjectWithUniqueName<MjFixedTendon>(tendonsParentObject, child);
|
CreateGameObjectWithUniqueName<MjFixedTendon>(tendonsParentObject, child);
|
||||||
} else if (child.Name == "spatial") {
|
} else if (child.Name == "spatial") {
|
||||||
|
|||||||
Reference in New Issue
Block a user