Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Model Editor Help Using multiple bodies on an object?
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#1
Using multiple bodies on an object?

I made a lightsaber with Umbakarna today, and i have specific problem with it..

[Image: attachment.php?aid=5108]

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:

[Image: attachment.php?aid=5109]

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.


Attached Files
.jpg   ModelEditor 2015-04-21 12-43-55-87.jpg (Size: 49.32 KB / Downloads: 222)
.jpg   Amnesia 2015-04-21 12-13-32-03.jpg (Size: 108.62 KB / Downloads: 215)
(This post was last modified: 04-21-2015, 12:06 PM by KiraImmortal.)
04-21-2015, 12:05 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Using multiple bodies on an object?

How does the outline look?

Are they tied to each other correctly?

Trying is the first step to success.
(This post was last modified: 04-21-2015, 12:11 PM by FlawlessHappiness.)
04-21-2015, 12:11 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: Using multiple bodies on an object?

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?

(This post was last modified: 04-21-2015, 12:57 PM by Mudbill.)
04-21-2015, 12:55 PM
Find
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#4
RE: Using multiple bodies on an object?

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?
04-21-2015, 01:27 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: Using multiple bodies on an object?

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.

04-21-2015, 02:35 PM
Find
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#6
RE: Using multiple bodies on an object?

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.


.rar   lightsaber.rar (Size: 476.6 KB / Downloads: 144)
(This post was last modified: 04-22-2015, 10:12 AM by KiraImmortal.)
04-22-2015, 09:55 AM
Find




Users browsing this thread: 1 Guest(s)