x


Best way to create/design modular Player

So I had an idea for the game that I am working on to have a the main character be completely modular and upgradable. The player is a robot and I would like to have each piece (torso, head, legs, left arm, right arm) to be able to be switched out and upgraded with better parts.

I am wondering what is the best method to go to create the different parts and have them be assembled at runtime. I have started with just basic unity native shapes as prototypes for the different pieces.

What would be the best way to accomplish this without killing the draw-calls on the iphone/ipad/android?

more ▼

asked Apr 22 '11 at 08:08 PM

n8 gravatar image

n8
192 11 14 26

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

One of the best ways is to model your character with ABSOLUTELY EVERYTHING ON HIM! Then, just make everything not relevent invisible. This is a really good, quick method, and allows you to have lots of items with little speed impact. (Also, the character with all the suits etc on looks awesome!)

more ▼

answered Apr 22 '11 at 08:30 PM

Muzz 1 gravatar image

Muzz 1
548 52 59 71

I'm doing something similar, but for pc. Is there really no loss in frames etc. because there will be up to about 125 upgrades per "player model" in my game?

Apr 22 '11 at 09:13 PM Myth

yeah i have the same question. If you are offering tons of different upgrades or just want randomly generated body parts (stats,equipment etc) would you really want to have to model everything upfront? It makes more sense to me to model the individual pieces and then let the engine put them together. But Once again, I am noob so that may be totally wrong

Apr 25 '11 at 08:47 PM n8

to clarify, i don't want my character to have a single upgrade path. I would like each part to be upgraded individually and I would like for each body part to carry a set of stats that could be randomly generated (enemy spawns with random amount of strength,shield, etc)

Apr 25 '11 at 08:50 PM n8

This is what I saw someone do, and they had huge amounts of upgrades, and it had a really good framerate.

Apr 26 '11 at 05:47 AM Muzz 1

ok cool. I am just trying to wrap my head around it. I can see how this would work, just was a bit worried about scenarios with large number of updates. do you know if the objects that are being hidden are still being sent to the gpu?

Apr 26 '11 at 02:49 PM n8
(comments are locked)
10|3000 characters needed characters left

you can create bones in the position that you need your Armor / Weapon to be instantiated and use them as Transforms. never tried it but i imagine that it works since these bones will move and rotate with your character

more ▼

answered Apr 20 '12 at 12:48 PM

Jeliel gravatar image

Jeliel
46 1 1 4

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2455
x1999
x660
x360
x110

asked: Apr 22 '11 at 08:08 PM

Seen: 1294 times

Last Updated: Apr 20 '12 at 12:48 PM