fixed joint limits, simpler/faster cubic function