Can I modify the Panda source and sell it?

Can I create my own engine based on Panda3D source code and then sell it as proprietary software?
If so what would I have to do to make it legal?

Yes, you can, as long as you retain this notice somewhere: