Hello @smokys! I think this answer of @Leonidas will help you:
How to implement Hill Climb Racing 2D game in PlayCanvas?