This week I've been working with the creation of a custom character for the player. I did it and learned which parameters do I have to change in order to include a custom mesh, animation tree, materials and animation set.
I just changed this to the assets that the UDK comes with, since the inclusion of a custom mesh is easy, but it would only float around, because the rigs for the pre-defined animation sets are very specific about the mesh that they use, so when you try to add this to a custom mesh, it just doesn't work, or in some cases, crashes UDK. In order to prevent this when Craig is creating the rigs for the models, I sent him a tutorial with a guide of the different parameters that has to be considered.
The creation of the custom character included a function in the "Game" class, that would set the defined parameters for the mesh, and for all the custom meshes that we would have in the game, the corresponding function would have to be created. Doing a little bit more of research I came across the "FamilyInfo" class, which allow me to set parameters to a group of characters and even assign more specific ones, like assigning the team and team specific parameters. This would be really helpful in the gameplay programming.
Finally, this second way of doing it, will allow me to get rid of the function in the "Game" class, the only needed modification was to set our custom "FamilyClass" as a default property in the "PalyerReplicationInfo" class.
The goal for this week was to create a framework that would allow to include into the game the custom characters that we will have and it was successfully completed. This week, I'm working in a simple UI for the game.
No comments:
Post a Comment