Can you use the character class for a vehicle?
I'm trying to make a race game so I started by using the wheeled vehicle blueprint class but it is more complex than I needed and it doesn't have some of the features I need, plus there is no AI yet. My next option was to use the basic Pawn class and build the vehicle movement myself but I'm curious if I can just use the character class instead?
The vehicles have a skeletal mesh and driver (who has winning and losing animations). Plus there are special features of the character class that I need, and I know it allows for animations, and easy access to the movement component. There is also the added advantage of the AI system which would be a lot easier than having to make my own.
However the main part that's making me doubt if I can use the character class is the documentation mentions a "walk" component. I'm not sure what that fully involves as I've seen quite a few characters that glide instead of walk, and some that don't even have feet that use the character class. Is there any extra info on what the "walk" component is or what it does different to a basic move component? Also is there any reason why I wouldn't be able to use the character class ?
No theres no reason. A character is a pawn class just with a character mvoement component added. Character inherits from pawn which inherits from actor which inherits from object.
When something is gliding its just got no animation for moving. When something with no legs moves... its just moving.
You dont think characters/pawns/actors/whatever class has something moving actually physically walk over and around hte game world via WASD do you?
Follow this question
Once you sign in you will be able to subscribe for any updates here