Topic: access to the "Follow behavior" attributes
Hi, I have an another question about SDK, I try to attach a Follow behavior to a 3d Entity :
MBehaviorManager * bManager = MEngine::getInstance()->getBehaviorManager();
MBehaviorCreator * bCreator = bManager->getBehaviorByName("Follow");
MBehavior * behavior = bCreator->getNewBehavior(object);
object->addBehavior(behavior);
it work, but how can I change the "delay", "offset" ... attributes of "behavior" ?
I try to convert "behavior" with an expression like "(Follow *) behavior" but it doesn't work ...
Last edited by Alinor (2012-01-31 18:15:50)