| 620 | } |
| 621 | |
| 622 | void afxChoreographer::executeScriptEvent(const char* method, afxConstraint* cons, |
| 623 | const MatrixF& xfm, const char* data) |
| 624 | { |
| 625 | SceneObject* cons_obj = (cons) ? cons->getSceneObject() : NULL; |
| 626 | |
| 627 | char *arg_buf = Con::getArgBuffer(256); |
| 628 | Point3F pos; |
| 629 | xfm.getColumn(3,&pos); |
| 630 | AngAxisF aa(xfm); |
| 631 | dSprintf(arg_buf,256,"%g %g %g %g %g %g %g", |
| 632 | pos.x, pos.y, pos.z, |
| 633 | aa.axis.x, aa.axis.y, aa.axis.z, aa.angle); |
| 634 | |
| 635 | // CALL SCRIPT afxChoreographerData::method(%choreographer, %constraint, %transform, %data) |
| 636 | Con::executef(exeblock, method, |
| 637 | getIdString(), |
| 638 | (cons_obj) ? cons_obj->getIdString() : "", |
| 639 | arg_buf, |
| 640 | data); |
| 641 | } |
| 642 | |
| 643 | void afxChoreographer::addObjectConstraint(SceneObject* object, const char* cons_name) |
| 644 | { |
nothing calls this directly
no test coverage detected