added local-frame predicates
added mesh/collision stuff