Yes, I know I can use Object class, but the code like this
@SimpleFunction
public Joint CreateMouseJoint(Body body, float x, float y) {
assertWorld();
MouseJointDef mjd = new MouseJointDef();
mjd.bodyA = boxWorld.getWorld().getBodyList();
mjd.bodyB = body;
mjd.target.set(BoxUtil.pixelToVec2(x, y));
MouseJoint mj = (MouseJoint) boxWorld.getWorld().createJoint(mjd);
body.setAwake(true);
return mj;
}
you see the return type is Joint, input type is Body, both not from Yail type, but if I compile this file with aixc, it's working.
but with Fast, it fails.