Iâve been trying to replicate the gravity results by looking at your hiearchy, and I canât seem to. Would you mind writing a small guide? Also, for some reason with the custom pawn, its not registering speed. So my blendspace for walking doesnât work. I tested it with a normal character blueprint with the same setup and it worked fine. Not sure if thatâs an issue with something Iâm doing or with the pawns.
EDIT: I got the walk animations working - though I still cannot replicate the gravity.
So at the moment using the custom gravity for our own objects is not possible? Also - When compiling, and running the game, or launching it from the editor, The camera is stuck in the ground and you are not able to do anything. The player doesnât spawn. I narrowed it down to the custom pawn being the issue, as if i change the gamemode pawn class to the default third person controller, the player will spawn.
âCustom Pawnâ is the base class , use âFirstPersonCharacterâ or âThirdPersonCharacterâ.
The camera stuck because you did not implement Input events.
Look at âPawnsâ blueprints , it will give you a clear i idea
Yeah, I was using the ThirdPersonCharacter_BP as the âDefault pawnâ in the âGameMode_BPâ However, upon packaging as a game, or launching through the engine, the player does not spawn, and the camera gets sent to 0,0,0 Iâd assume.
there is 2 ways to do it :
Add a âCustom Physics Actorâ to you scene and change the cube mesh to your mesh
Or
You can simply add the âcustom gravity componentâ to it
Holy Banana! I was just trying to programm something very similar, this will knock my game up to 11! Thanks a lot!
Which way would you like to be credited?
(Or maybe you want to take part in it?)
Hey, me again.
I cannot compile a game using this plugin.
Whenever I packaged the project for either Windows 32 or 64, I do not spawn as the character I set anymore, but instead I spawn as default ânullâ character, with no controls and at location 0,0,0.
I have set all the defaults properly under Project Settings -> Maps & Modes. I also made sure the gamemode that is beeing used, is using the proper character, nothing helps though
I already fixed this issue , just download the full project again from github or :
1- Overwrite this file â/Plugins/CustomGravityPlugin/CustomGravityPlugin.upluginâ
2- âGenerate Visual Studio Filesâ
3- Compile the project in VS
Wow, you work fast!
I am re downloading now! Thanks a lot
EDIT: I am now getting this error while compiling your project:
When I try to package my own project, it works, but when starting I get the error message:
CustomGravityplugin failed to load because module CustomGravityplugin could not be found