Gryphon_de Posted July 7, 2011 Posted July 7, 2011 Hello! I am trying to import Unigine test character (Agent) to our project. Question is, how to tune it correctly? 1. I see: <!-- skin --> <skin> <node>nodes/agent.node</node> <scale>6 6 6</scale> </skin> Why its scale is 6? If 1 unit = 1 meter, is it 6 meters? Anyway, how shoult I tune char if I know height it should be (1.8 meters, as example)? Will it be scale only or other fields too? 2. <!-- actor --> <actor> ... <damping>1</damping> ... <ground_threshold>1.5</ground_threshold> ... </actor> How does these parameters work exactly? I tried different values with no visual effect.
binstream Posted July 7, 2011 Posted July 7, 2011 Here is the detailed documentation: https://developer.unigine.com/en/docs/1.0/code/scripting/scripts/character/
Gryphon_de Posted July 22, 2011 Author Posted July 22, 2011 Here is the detailed documentation: https://developer.unigine.com/en/docs/1.0/code/scripting/scripts/character/ Yeah, thanks. I read this article already. Thing is not all character params are as transparent as, well, I would like them to be) Take ground_threshold for example. Tutorial says: ground_threshold is a threshold distance, up to which the character is considered to be on the ground. Distance between what? When my char (still Agent) walks on not-flat terrain, it turning in jump animation all the time inrelevant on its ground_threshold. Is it like it should be?
Guest anet Posted July 26, 2011 Posted July 26, 2011 Distance between what? When my char (still Agent) walks on not-flat terrain, it turning in jump animation all the time inrelevant on its ground_threshold. Is it like it should be? If internal PlayerActor is not on the ground (according to the engine), then character script code checks for intersections on the line between the actor's lowest point and the ground. This line length is equal to ground threshold. If there are any intersections on this line, character is considered to be on the ground and plays appropriate animation. Otherwise it is considered to be in the flying state. Have you tried huge ground_threshold values? Does character plays flying animation in this case too?
alexander.zubov Posted January 31, 2012 Posted January 31, 2012 Is there a tool to make .character file? We are trying to get a character going from the ground up and there is no explanation how to get scratch .character started :/ The player's model has only 4 animation frames and we would like to have an example for it. Thanks.
binstream Posted January 31, 2012 Posted January 31, 2012 No, there is no tool for .character file generation. It's recommended to use new Unigine::Skinner system (it is much more flexible and has visual editor of animation tree) instead of Character.
binstream Posted February 1, 2012 Posted February 1, 2012 Here is the documentation: https://developer.unigine.com/en/docs/1.0/code/scripting/scripts/systems/unigine_skinner
Recommended Posts