Hi,
I'm new to unity and I have followed a couple of things to get an car up and running..
I encountered an problem:
I have an first person player and a car both works both have an camera.
When I press F I get in my car when I press R I will get out of it..
Only thing is the car just won't move.. I tried 2 different scripts I also added rigidbody and wheelcolliders for all 4 wheels.
But it just won't move I also don't seem to get an error in the logs about any script problem..
One script I tried actually showed the speed and brakes etc.. I started the game get in the car and I pressed the designated keys and I noticed on the right side it changed forward engine power braking steering etc. to other values when I pressed those buttons..
But it still didn't moved..
Any thing I might have missed or didn't see?
I would be very grateful if someone could point out what I did wrong..
I uploaded the car etc. with what I mean here: http://sharpbite.org/gameproblem/112forces%20web.html
if needed I can also upload the project folder..
I really don't know what to do else..
Scripts that I use and tried can be found here:
http://sharpbite.org/gameproblem/PlayerCar_Script.html - one of the driving scripts I tried
http://sharpbite.org/gameproblem/EnterExitVehicle.html - for entering DOES WORK
http://sharpbite.org/gameproblem/drive.html - another driving script I tried
I really hope someone can help me and know what I did wrong.
-Brian
↧