Jump to content

[SOLVED] .character tuning


photo

Recommended Posts

Posted

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.

  • 3 weeks later...
Posted

 

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?

Posted

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?

  • 6 months later...
Posted

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.

Posted

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.

×
×
  • Create New...