8000 GitHub - urho3d-forks/urho3d-component-tail-generator: Tail generator component for Urho3d engine
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

urho3d-forks/urho3d-component-tail-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is obsolete after urho3d/urho3d#1418

Tail generator component for Urho3D engine

Using:

#include "TailGenerator.h"

void Game::Start()
{
    ...
    TailGenerator::RegisterObject(context_);
    ...
}

void Game::CreateScene()
{
    Node *tailNode = modelNode->CreateChild();
    tailNode->Translate(Vector3(0.0f, 1.0f, 0.1f), TransformSpace::TS_LOCAL); // translate a tail relatively a object
    TailGenerator* tailGen = tailNode->CreateComponent<TailGenerator>();
    tailGen->SetTailLength(0.1f); // set segment length
    tailGen->SetNumTails(50);     // set num of segments
    tailGen->SetWidthScale(0.5f); // side scale
    tailGen->SetColorForHead(Color(1.0f, 1.0f, 1.0f));
    tailGen->SetColorForTip(Color(0.0f, 0.0f, 1.0f));
}

About

Tail generator component for Urho3d engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%
0