[MDL ED] Using multiple bodies on an object? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [MDL ED] Using multiple bodies on an object? (/thread-29841.html) |
Using multiple bodies on an object? - KiraImmortal - 04-21-2015 I made a lightsaber with Umbakarna today, and i have specific problem with it.. I'd like to make another body for the blade that is silent, and collides only characters. When i try to do that the thing looks like this in game: How is it possible to add two different bodies to a mesh, with different properties (and make it working in game or course)? It worked i mean even that it appeared badly, the hilt collided the floor and the blade didn't. RE: Using multiple bodies on an object? - FlawlessHappiness - 04-21-2015 How does the outline look? Are they tied to each other correctly? RE: Using multiple bodies on an object? - Mudbill - 04-21-2015 You need to separate the meshes in your model. Split the hilt from the blade and you will be able to attach a body to each specific part. When you select a body you've created in the model editor, you get the option to "Assign sub-mesh." Use this to link it to your part. I don't think you can link two bodies to the same mesh. I'm not certain of all the details, because using two different bodies, both with mass, may have them act as two separate objects. I'm sure there's a way to stick them together, but I don't quite remember. I believe something like that is what happened here, where the gravity of the blade is normal, but the hilt just fell through the floor? RE: Using multiple bodies on an object? - KiraImmortal - 04-21-2015 what i want to achieve is actually the blade to go through walls, but it can collide with monsters (there is a "combat" element for weapons, already used by Umba, that if you hit a monster multiple times with a weapon it will poof). the hilt acts as a normal object, that also collides walls. is it actually possible? on the body if the property is the to "collide character" only will it also collide with the monsters not just the player? RE: Using multiple bodies on an object? - Mudbill - 04-21-2015 I'm not sure as I've never really tested it myself, but I would guess so. Makes sense to me that it would. I'm sure your request is possible. RE: Using multiple bodies on an object? - KiraImmortal - 04-22-2015 okay i tried some things. when i attach body 1 to the hilt (and particles, sound), and body 2 to the blade the two bodies become separated. i can pick up the hilt, it goes into my hand wihtout the blade mesh, but with all particles. i can click on the blade mesh too, but it remains on the ground. when i attach both bodies to both meshes, i can only pick up the blade with all the particles but the hilt remains on the ground, uninteractable. any possible solutions based on this information? i uploaded the last version, where the bodies are attached to their proper mesh, but they fall apart and act separately. [attachment=5111] |