1
Support / Re: how to caculate the angle between the SimpleVector
« on: November 06, 2011, 06:04:40 pm »
Thank you very much !
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
try {
model = Loader.loadASC(new FileInputStream("/assets/terra.asc"), 4, true);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
model.setTexture("texture");
model.strip();
model.build();
world.addObject(model);
by the way, is there something wrong with the following code, I load the model using that fist, but when I use this function , the program will stop unexpectedly, thank you.public InputStream loadf(String fileName)
{
AssetManager am=getResources().getAssets();
try{
return am.open(fileName,AssetManager.ACCESS_STREAMING);
}
catch(IOException e){
return null;
}
}