i'll try that, thanks!
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.
Show posts Menu
ModelAvailable(
Object3D.mergeAll(
Loader.load3DS(tools.getStream(model), scale)
)
);
object3D.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS | Object3D.COLLISION_CHECK_SELF);
object3D.addCollisionListener(new CollisionListener() {
@Override
public void collision(CollisionEvent collisionEvent) {
Log.d("Renderer", "collision: " + collisionEvent);
}
@Override
public boolean requiresPolygonIDs() {
return false;
}
});
((MyModel) mymodel).getObject3D().setCollisionMode(Object3D.COLLISION_CHECK_OTHERS | Object3D.COLLISION_CHECK_SELF);
((MyModel) mymodel).getObject3D().addCollisionListener(new CollisionListener() {
@Override
public void collision(CollisionEvent collisionEvent) {
Log.d("Model3d", "collision: " + collisionEvent);
}
@Override
public boolean requiresPolygonIDs() {
return false;
}
});
SimpleVector vector = new SimpleVector();
vector.y = 10;
((MyModel) mymodel).getObject3D().checkForCollision(vector, 100);
Page created in 0.027 seconds with 12 queries.