![]() ![]() ![]() ![]() I need a script the works similar to the physics gun of Garry's Mod, not with graphics, laser rays and stuff, just the core 'grabbing, throwing around, rotation, freezing' mechanics. If you'd be holding a cube where each face has a different color, and you only see the blue one currently, then with this code you will always see the blue one, no matter how you rotate. Ok, I have search the web but really can't find anything good on this. Now the object will be "rotationally locked" relative to you. Var rd = Quaternion.FromTo(playerRotationLastFrame, playerRotationCurrentFrame) Here is how you do it, I'm typing this from my phone tho so the code will be a bit messy, sorry for that Just apply the same rotation the player does, to the object you are holding. It can be used to move pesky blocks, and get rid of annoying Creepers, Players, Sheep, and almost anything else. Half-Life 2 Gravity Gun 1:1 Scale Prop Replica Geek Decor. Gravity Gun is a mod which adds the Gravity Gun, an item (based on the Gravity Gun from Half-life 2) which allows you to pick up blocks, mobs, and players, and shoot them, or move them to a different position. In that case the solution is really simple. Other Garrys Mod Guides: How to Quickly Get All Achievements (Includes Secret Phrase). So that the same exact point on the object that is facing you, will still be facing you, no matter how you rotate your view/camera as the player. You want the rotate the object together with the players rotation,right? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |