I hope this helps, dont worry about disappointing anyone, you got this!Īnd even if it doesn't work perfectly at the end, this is quite a challenging system for someone just starting out even if it might seem simple. Also I am not sure, but maybe make the players collider a sphere collider to have it pass through corners more easily, also lock its rotation if you have not already done that. To make everything smoother to move and look at, enable rigidbody interpolation and make collision detection continuous. You can set the motor torque and speed values to positive or negative values to have it rotate left and right. Deepest SwordBepInExCore (besides Harmony20.dll). In the lib directory, paste in the following things: All the DLLs in. Then set the Connected Rigidbody value to the character rigidbody.įrom script, you can enable the useMotor value if you want the sword to move and disable it again. In the BuildVars directory make a text file called deepestswordpath.txt and paste in the path to the directory you installed Deepest Sword in. The most important part though is: Use a joint for example a hinge joint 2d on the sword. Also, I would increase the swords mass value every time it grows. You can also easily change its length that way, as you can modify the size of the collider. Give the sword a capsule collider 2d which will make collision smooth. The way I would set this up, just looking at the video would be to give the character a 2d rigidbody and the sword is under the character/a child of it in the hierarchy that also uses a rigidbody 2d. Could you maybe post some code of how you are currently doing things? I have not played the game, but I guess you can't jump and have to use the sword to climb and get around. So problem 1 and 2 seem to be related, the box collider goes through walls because it cant move the character wielding the sword.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |