Questions tagged [character-controller]
The character-controller tag has no summary.
52 questions
1
vote
2
answers
472
views
How do I implement the "collide and slide" algorithm in Unity?
I've recently been attempting (and failing) to create my own character controller for my 3D Unity game for around a week. I hate the Unity rigidbody physics system for making a character controller, ...
0
votes
0
answers
30
views
When connecting a Character Controller component to a character, it starts to rotate uncontrollably
When connecting a Character Controller component to the character in Unity, it starts to rotate uncontrollably. Without the Character Controller, everything works fine, but the character does not walk....
0
votes
1
answer
122
views
Character Controller isGrounded reports false when descending slopes
I encountered a problem in Unity related to the Character Controller, namely with checking whether the player is on the ground or not (isGrounded).
A player walking down a slope with a minimum angle ...
0
votes
0
answers
72
views
Inconsistent jump height when rotating character left or right
I am developing an endless runner mobile game, Similar to Subway Surfers. I make my player character rotate slightly left or right and then return to facing forward when sliding left or right. The ...
0
votes
1
answer
85
views
In Unity, how can a regular RigidBody know if it collided with a CharacterController?
I have a Unity CharacterController, that can detect collisions using the following code:
...
0
votes
0
answers
77
views
First person jump only works at certain angles
I'm making a basic 3D First Person project using the movement code below, but I can only jump at a certain angle.
How can I fix this so that my character can jump anywhere?
...
3
votes
1
answer
872
views
How are character controllers built upon complex gameplay systems?
I would like some industry advice. I feel like the starting part to every game I create is the character controller. My goal is to create a solid base character controller that I can expand upon for ...
1
vote
1
answer
2k
views
How to compare a vector to a rotation in Godot 4.1?
The Context
In Godot 4.1, I have a third-person character controller. It's a CharacterBody3D with a child Node3D called PlayerContent. The visual components of the character (model, etc.) are all ...
0
votes
2
answers
152
views
How to collide a circle against a pixel grid without getting snagged?
It's probably senseless to post my code because it simply takes a hard-stop approach when it encounters anything in the grid that is impassable (well, I've attempted to check -20/+20 deg, then -40/+40 ...
0
votes
1
answer
429
views
Why is Physics.CapsuleCast returning a mix of true and false when it should return only true?
I'm making a simple character controller. Each frame the player moves by moveDistance units in the moveDir direction.
I'm ...
0
votes
1
answer
80
views
My character keeps wanting to face the world z axis
My character is facing the direction its moving to, but when it stops moving, it rotates back to facing the world z axis.It rotates back to "how it was".
...
0
votes
1
answer
1k
views
What is ApplyBuiltinRootMotion and how to use it?
The character in my game has humanoid feature. I have unchecked "Apply Root Motion" in Animator component and use scripts for its movements. I want to implement a Ledge Grab Jumping movement....
0
votes
1
answer
64
views
Character Controller shows in scene but not in game
When I press play my character controller turns black, the scale on the z axis is 0 and all the children are not visible. Now the thing this only happens when I press play — if I don't, everything is ...
0
votes
0
answers
122
views
Alternative to CharacterController
I am really enjoying the use of charactercontroller, but it being limited by a y-axis aligned collider is a real annoying limitation when I am using a 'character' with a very different shape (like a ...
1
vote
1
answer
813
views
How to get/edit the script of the built-in "Character Controller" component?
I was using Unity's Character Controller component, but I found it very limited and wanted to tweak some things.
I thought about creating my own character controller from scratch, but it would be much ...
0
votes
1
answer
126
views
Determine when a character is stationary, and which direction they are facing
I'm currently trying to figure out two things for my character's movement and animation.
A better/faster way to track when movement stops than the IsSleeping method.
A way to track which direction my ...
0
votes
3
answers
3k
views
How to stop the slide on slopes?
I'm struggling with a wee issue where if my character walks up a slope he slides back down when at rest, and bounces down when running down the slope. I've followed a few videos but none seem to ...
0
votes
0
answers
2k
views
Character controller versus nav mesh agent for wandering?
I'm starting to work on the AI for my game, and one character will need to wander around aimlessly until one of its other states are triggered. With that, and after plenty of searching, I found a ...
0
votes
1
answer
2k
views
Stop 2D platformer character from sliding down slope
I'm making a 2D platformer game with the default Unity 2D physics. I am implementing slopes, but my player slips down the slope because of the physics.
Here is the code I use for the player movement:
...
0
votes
1
answer
562
views
Character controller falling with positive speed
I'm having very weird problems with my player's vertical movement. I'm using a Character Controller component with a capsule collider and no rigidbody. For testing purposes, I've ended reducing my ...
0
votes
1
answer
1k
views
Momentum-wise accurate player controls in Unity regarding collisions
First post here. So I am a newbie to Unity and am willing to create a general character controller script to base my future characters. I understand a character's mechanics are pretty design (UX) ...
2
votes
1
answer
2k
views
Capsule getting stuck on edge of block
I'm making a first person game and when I jump and my character gets close to the top of the wall, the vertical movement stops, jitters, or suddenly snaps to the top of the wall.
Video
Here is my ...
0
votes
0
answers
54
views
Moving character controller on twisted track
I am trying to move a ball using Unity's character controller component. I want to move the ball along the twisted track so that it can go upside down.
Below is the video of the problem when moving ...
1
vote
1
answer
1k
views
Unity3d Rigidbody movement along slope slowdown
I have a Rigidbody character controller (Unity, C#) which I'm trying to make work seamlessly when walking on sloped ground. I've got it working fine walking up and down a slope by changing the forward ...
0
votes
0
answers
99
views
Wall jump without returning to wall
In my 2D Platformer character controller that has both a wall jump and a double jump ability, how would I approach implementing a feature that stops the player from returning to the wall they ...