- Home /
Having some trouble with physics when creating a Shufflepuck Cafe clone (slidding and hitting the puck on a plane)
Hello,
I'm a total newbie in both game programming and unity engine.
I'm trying to make a small remake of Shufflepuck Cafe for fun. It is a kind of a very addictive air hockey game (nostalgia - I used to play it on my Mac when I was a kid until the mouse was dead !) and I'm struggling with the puck management.
I have created a small project to test some ideas, but none is working well:
- my component are a floor, 4 walls, a puck and a racket.
While trying to solve some problems I've add a transparent roof in order to unsuccessfully contain my object
I have set Rigid body physic for every component: ice for floor, wood for the racket, bouncy or rubber for the puck...
I have add a small script that is moving my racket with the mouse.
I'm facing this kind of issues:
- racket is going over the puck instead of colliding
- when it the puck took of and start rolling in the air
- puck and racket may drop through the floor
- when racket hits puck, nothing happen
In some condition it is working (for example when pushing the puck against a wall)
My questions are: - Is there a tutorial focusing on this kind of game (pong like, breakout, ...) ?
- Does the physic engine able to manage this kind of work without coding ?
- Do I miss something very simple to achieve my goal ?