This is just a little post about my current objective in my game, making a character builder. I am looking for advice or input so feel free to do whatever. I’ll try to check this regularly and update when I make progress. :]
Right. So my game revolves around characters that are made out of bits and pieces, active ragdolls specifically. The main crux of the game is that you can modify your character’s physique, changing body parts and the like to most likely have a character that looks nothing like the one you started with at the beginning of your play through.
My characters are composed of rigid bodies that copy the rotation and position of what I have come to know as an “IK Ghost”. The ghost having an actual hierarchy of it’s parts where the Ragdoll’s components all just children of one node.
I think the best way to accomplish something like this would be this.
- Character creator exports data for what parts to use and in what arrangement with what functions, yada yada.
- IK character is built using the position and rotation data along with limb designation so it know what IK and positional controllers to put where.
- RB character is built to copy the IK character, but instead of a parent child hierarchy, they are all sibling nodes connected with generic6dofjoint3d’s and they are set up to copy the IK automatically.
That makes the most sense to me I think, so that gives me 2 and a bit things to make.
-
Some way to build a character in a 3d space. This system I am thinking up would most likely benefit from having fixed connection points on each limb segment, like a torso would have 4, one for the head, two for the arms and one for the abdomen beneath. So I’d have to look into something like that, I think there are some spaceship building games like that so I’ll look into tutorials on those for some help. I’ll also need a way to designate what limbs to what functions, which shouldn’t be too hard.
-
Since character building scene will likely give me the whole IK character hierarchy, I would really just need to convert the IK skeleton into an active ragdoll, which shouldn’t be too hard I don’t think. Just make a new RB, shove in the model and colliders and such and then add all the stuff it needs to do that limb’s functions.
I think that should be everything.
First thing I’m getting on to is looking at tutorials for similar stuff. I’m still relatively new to Godot, so this could take a while.
Thank you for reading! Have a nice day!
I think you’re on to something with having pre made parts. In ship/space games I believe they call them “hard points” where you can mount guns and tools to the ship.
I went down a similar thought experiment and thought that separating limbs into classes and having hard points that link the different limbs together would work. I would start from the torso and build out from there, with hard points for heads, arms, legs or whatever other appendages you want. Using resources would probably work well so that you can easily make different layouts and have different visuals.
Its been a while but in my test I built a randomizer that would pick from an array of torsos, then for each type of limb hardpoint, would pick random limbs. My goal was to make a monster battler with each limb having specific stats but I never quite got that far.
Yep I thought that kind of thing would make the most sense, better than making the player make their own limb shapes and functions from scratch, that would just be tedious. This hard point system you speak of sounds like the way to go, so I’ll see if I can find anything more on that. Things are a bit barren when it comes to tutorials, but I am probably just searching the wrong things. d:
Gosh, I haven’t even gotten to thinking about how I would randomly generate stuff. I have a similar system with there being a main chunk with body parts branching off. I feel like it kind of has to be structured that way really! lol
Cheerio!
If I can figure it out, you can figure it out! XD
I believe in my resource, i had an array of marker 2Ds that were the point of contact for limbs, so after creating the torso shape, I’d add to that list of makers and adjust their position to fit what I was after. I’m not smart enough to program it to automatically place the markers in a way that makes sense, so I opted for the curated randomness of pre fabbed parts ( I had been researching Spelunky and Derek yu’s room design, which are essentially puzzle pieces that fit together when conditions match correctly).
I recommend starting with something simple like this as you can definitely make a prototype with this approach.
Glhf!!!
Oh, so like how they do room layouts in those games with procedural generation, of course! I guess it wouldn’t be any different from that really. That will come in useful in the future I suppose but I really just gotta find out how to make an interface for the player to be able to do this stuff… But then again an interface is only useful if you have something to interface with, that being the system I need to make! Huh. I guess that makes more sense than I thought.
Thanks again!
you could make a plane check too, make that each limb will have a surface you can connect to main body and if this surface isn’t connected you can’t build it, it will add more freedom but if you’re making sandbox it can work well
Yeah, that could definitely be an option. Personally I was leaning more towards a node based placement system to make random generation a bit easier. Maybe I could use that system for more cosmetic parts, or even for placement of things like cameras on the limbs.
Thank you kindly for your input!
Progress update!
Unfortunately, there has been little progress made over the past few days. Life has been busy. I hope I can really get into this soon. I should have some more free time this coming weekend, until then I shall continue to ponder and perhaps receive more input from others…
That along with some of my other code not being as suitable for this system as I predicted has made progress yet slower.
Such is life! I’ll get there in the end, I know it.
Oh god, procrastination. Bad me, putting this off. Naughty. Very naughty.