Code Monkey home page Code Monkey logo

fps_movement_rigidbody's People

Contributors

danidevy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fps_movement_rigidbody's Issues

Nothing Works?

Whenever I copy and paste Dani's code into my own script and add it to the player as instructed nothing happens??? (The Script doesn't do anything) am I doing something wrong? I think the issue might be how the way I'm copying his code but it doesn't show how to copy it in his tutorial.

problem

Assets\movement.cs(271,1: error Cs1056: Unexpected character 'c'
dont know what i did but that showed up and i dont know how to fix it im kinda dumb
:/

Code does not work

I continue to get errors stating "316,3, 316,14, Type or namespace definition, or end of file expected" and "316,8, 317,1, A namespace cannot directly contain members such as fields or methods" In my PlayerMovement Script. How would I fix that.

errror

The referenced script (NewBehaviourScript) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object 'Player') is missing!

I copied and pasted the player movement code and those error messages came.

Can someone help me on this?

unity webgl

set ur game up for webgl to load it up in chrome dat would be dop asf,
im a javascript programer, i made an fps game with physics etc raw code without using any engine in webgl

contactCount error

I'm getting an error with this code

 //Iterate through every collision in a physics update
        for (int i = 0; i < other.**contactCount**; i++)
        {
            Vector3 normal = other.contacts[i].normal;
            //FLOOR
            if (IsFloor(normal))
            {
                grounded = true;
                cancellingGrounded = false;
                normalVector = normal;
                CancelInvoke("StopGrounded");
            }
        }

CS1061 'Collision' does not contain a definition for 'contactCount' and no extension method 'contactCount' accepting a first argument of type 'Collision' could be found (are you missing a using directive or an assembly reference?)

Incorrect usage of Time.deltaTime in movement.

In the character movement script, all of the forces are added by multiplying by Time.deltaTime. Instead, Time.fixedDeltaTime should be used because the FixedUpdate method runs at a constant frequency unlike Update.

The current code makes the character accelerate much slower when you have high FPS, and much faster when you have high FPS.

Dani if you see this you may want to also fix it in your main game because it will give players with potato PC an advantage because they run at lower framerate.

Falling thru ground?

Hello, i made my character a mesh with a rig and when i play it falls through the ground? How do i fix it and why does it occur

toooo many inputs, apearently?

ok so whenever I make to many inputs, like pressing CTRL 10 times or something, the character just moves backwards and wont stop. i can walk forward by just... walking forward, but after pressing W he just continues to walk backwards...

he even does this sometimes when I press play and don't press anything. I have looked through the code but nothing seems to catch my eye, might be because this is my first project...

may someone spend their time with helping me? would be greatly appreciated

The Code Doesn't Work

the code just doesn't work for my pc type, i'm using windows 10 and it says "There are inconsistent line endings in 'Assets/head.ms' script. Some are MAC OS X (UNIX) and some are Windows.

please help

wont move

idk what i did but its not working i cant move (im new to unity so it could be something basic)

Gun resizes with player

Hey so my gun(cube) is resizing when I crouch, but in your tutorials it doesnt. ANY WAY I COULD FIX THAT?

Camera not working?

Pls help, the movement for the player works fine but i cant move the camera with the player..

Camera isnt turning

The movement works fine its just when I go to turn the camera it does nothing. No movement. Please help.

doesnt block jumping when midair

so i used these scripts in my game, and made a few parkour levels, but when testing them i quickly realised you can jump when you are midair. i looked into the movement script and saw that there is a thing that blocks the jumping when midair, but it doesnt work (for me). anyone knows how to fix?

Camera moves But Player Doesn't

The camera and movement work great, but the player doesn't turn with the camera. He stays facing the same direction. Any help would be appreciated.

Fixed Random Jump Direction

This issue was mention by Dani I believe when he first premiered this movement system.
But for those who don't know, when you jump sometimes force is applied in what seems like a random direction.
The issue lies in the FindVelRelativeeToLook() method where Dani tries to find the direction the player is moving in with direction.
As most would, rb.velocity.magnitude was used. This included the jump force in the movement causing the countermovement
method to try and reduce it. Thus the random movement. This can be fixed by only including the x and z velocity.

Just text of the method that fixes this issue .

Issue.txt

I have A problem with the mouse movement and my menu

So i have a menu aswell everytime i press escape the mouse movement still moves so i cant press any buttons
so theres three buttons Resume Menu and quit i cant press any because the player mouse is moving when i move it to press the buttons please help

Incorrect extra gravity value.

Line 102:
rb.AddForce(Vector3.down * Time.deltaTime * 10);

Time.deltaTime is incorrect, and should be fixedDeltaTime.

random spring joints on the player

a couple days ago i started to notice that my player is getting randomly thrown around the playable area. I have been using the grappling gun script along side the player movement scrips. Randomly my player suddenly has multiple spring joint components attached to it. I would like to note that the only thing i changed before this was the model I was using for the gun but I did follow every step in order to have it all set up correctly

This script ain't working at all PLEASE HELP!!

This script is not working at all. It says: The associated script can not be loaded. Please fix any compile erros and assign a valid script. Is there any fix to this? Or is the script simply just outdated? Please help! The MoveCamera doesn't work either with the same error message poping up. I'm new to coding so please use as much english as possible!

inverted controls

the controls are inverted, i spend 2 hours finding out how to resolve it but no idea, pls help.

Grappling Gun Problom

When I Press The Mouse Button The Grappling Gun Works Fine But Sometimes When I Stop Pressing The Mouse Button The Spring Joint Attacked To The Player Don't Get Removed ):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.