onWall (and other related methods) not working when used inside a separate class based entity

Never mind. I figured it out.

I needed to use this.body.body.onWall().