Skip to main content

Questions tagged [character-controller]

Filter by
Sorted by
Tagged with
1 vote
1 answer
120 views

I'm adding deceleration to my player character, decreasing their velocity over time when the player releases the direction keys. With the code below, at non-perfect angles, the character seems to re-...
MyNamesRubber's user avatar
0 votes
0 answers
59 views

I'm trying to create a 2D side-scrolling player controller like Terraria but I can't get the delta-time right. If I set my laptop's mode to battery saver mode, my character jitters (from DT jitters) ...
Acerx.AMJ's user avatar
1 vote
2 answers
520 views

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, ...
Callumari's user avatar
0 votes
1 answer
125 views

I made character movement using AddForce. But I don't understand how to get the desired effect. I need that when I release a movement key (for example WASD) the ...
Friendlyap's user avatar
0 votes
0 answers
32 views

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....
Pixel Play's user avatar
1 vote
0 answers
122 views

CONTEXT: I am implementing a basic 3D character controller from scratch in Unity. For collisions, I do a capsule cast in the direction of the player velocity and use the collide and slide algorithm to ...
Numdoo's user avatar
  • 11
0 votes
1 answer
136 views

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 ...
Dexport's user avatar
1 vote
2 answers
221 views

I have a game with a player controlled by a CharacterController. I also have a MovingPlatform. When the player lands on the moving platform, it becomes a child object of it, so that it should move ...
Erel Segal-Halevi's user avatar
0 votes
0 answers
75 views

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 ...
Achie1's user avatar
  • 181
2 votes
2 answers
1k views

I'm watching a tutorial on setting up a 3D player character in Godot, and at around 7:45, it shows CharacterBody3D as the root node. I'm wondering if this is ...
NobleAbsinthe's user avatar
0 votes
1 answer
89 views

I have a Unity CharacterController, that can detect collisions using the following code: ...
Kokodoko's user avatar
  • 117
0 votes
0 answers
50 views

I recently started work on a new game and was making a first person controller. However, this problem came up. My problem I played around with it and followed multiple tutorials, but none worked. ...
Donkey45's user avatar
0 votes
0 answers
80 views

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? ...
MarsDarklighter's user avatar
4 votes
1 answer
1k views

I am working on a character controller for a 3D platformer in Unity. I cannot find an approach that satisfies me. I have experimented with these approaches in order to learn about their virtues and ...
DyingIsFun's user avatar
  • 1,337
3 votes
1 answer
885 views

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 ...
Jacob Edie's user avatar
0 votes
1 answer
392 views

The bottom part of the player capsule collider is going inside the ground collider. I am using a raycast for detecting whether the plauer is grounded; an object (sphere) that is present on the bottom ...
Sami Rehman's user avatar
1 vote
1 answer
2k views

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 ...
Legoman's user avatar
  • 173
0 votes
1 answer
105 views

I recently made the switch to the unity built in character controller, as it better suited the needs of my project. However, after refactoring my code to work with the character controller I've ...
Jambo's user avatar
  • 11
0 votes
2 answers
155 views

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 ...
iPaul's user avatar
  • 1
0 votes
0 answers
191 views

How a character controller's skin width is implemented? I have a custom server with a traditional heightmap for terrains but when it comes to regions sitting on the terrain, I rely on 3D voxels that ...
iPaul's user avatar
  • 1
0 votes
1 answer
432 views

I'm making a simple character controller. Each frame the player moves by moveDistance units in the moveDir direction. I'm ...
EEAH's user avatar
  • 113
0 votes
0 answers
158 views

Currently my character moves around like expected except the jump. Right now it jumps but it pops up instead of a proper jump, it jolts up, teleports up. the jump works, it just pops up. ...
Solodobo's user avatar
0 votes
1 answer
81 views

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". ...
Solodobo's user avatar
0 votes
1 answer
398 views

I'm creating an audio script for my character and it changes the sounds based on the textures it is walking on. Said character uses a Character Controller component from Unity and I thought of using ...
Astolfo's user avatar
0 votes
1 answer
1k views

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....
Achie1's user avatar
  • 181
0 votes
1 answer
741 views

I'm developing a game in which bot-controlled billboards pursue you. If the bot gets stuck behind a wall for a while, not able to catch the player, I want the bot to pass through the wall. I'm using a ...
silver takana's user avatar
0 votes
1 answer
65 views

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 ...
Sajawal Hassan's user avatar
0 votes
1 answer
591 views

I came across this line of code below. What the boolean "isMatchingTarget" is used for? ...
Achie1's user avatar
  • 181
0 votes
0 answers
122 views

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 ...
Weckar E.'s user avatar
  • 842
0 votes
1 answer
429 views

Here is the problem. This is the exterior of the hallway in which my player capsule is standing. Notice the bottom of the capsule poking through the floor. This is the interior of the hallway, notice ...
ChristianOConnor's user avatar
1 vote
1 answer
817 views

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 ...
Alexandre's user avatar
  • 150
1 vote
0 answers
93 views

I'm currently implementing a system in Unity where I generate an approximation of a blood cell and treat it as a planetoid, as if you're playing Super Mario Galaxy, and you're running around the ...
John Altos's user avatar
0 votes
1 answer
138 views

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 ...
EvelynSays's user avatar
1 vote
0 answers
91 views

It bothers me that a lot of character controllers are written to rely on raycasting for movement along the ground. While this solution is very straightforward and general (especially in the sphere ...
smallobsession's user avatar
0 votes
3 answers
3k views

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 ...
Sam Law's user avatar
0 votes
1 answer
174 views

I want to find all possible ways to control a game using 2 keys on input. 1. Summarize the problem I find a brand new game engine that has only two inputs but great potential! And the community of ...
rat's user avatar
  • 3
0 votes
0 answers
2k views

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 ...
Taco's user avatar
  • 326
0 votes
0 answers
1k views

I have a player with a CharacterController attached. The player can move around. There are obstacles which the player can collide with. These obstacles have a ...
Richard David's user avatar
0 votes
1 answer
2k views

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: ...
Santiago Padilla Zambrano's user avatar
0 votes
2 answers
2k views

I'm making a fps controller, and I'm trying to clamp my cameras x rotation. Here's my code so far: ...
Millard's user avatar
  • 510
0 votes
1 answer
564 views

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 ...
correojon's user avatar
0 votes
1 answer
2k views

I'm currently attempting to make a first person character using a rigid body. I am aware that the character controller exists, but I believe my game will be very physics based so it's better if my ...
Millard's user avatar
  • 510
0 votes
1 answer
1k views

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) ...
cbugk's user avatar
  • 103
0 votes
1 answer
253 views

I'm making a simple game and when the player crouches/slides I would want to make the character to change size. However when it changes to its smaller size it doesn't go back to its original size ...
Felipe Schluepmann's Films's user avatar
2 votes
1 answer
2k views

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 ...
PWalkersCrisps's user avatar
1 vote
0 answers
134 views

I'm trying to make my first game in Unity: a 3d platformer inspired by the classic Crash Bandicoot games. I've managed to make most of the movement with the character control script below. However, I ...
Felipe Schluepmann's Films's user avatar
0 votes
0 answers
55 views

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 ...
Naresh's user avatar
  • 129
0 votes
1 answer
105 views

I have a Unity mobile project where I am trying to use right/left movement using two UI buttons situated accordingly. The issue is that it only moves the player to the right/to the left one time, not ...
Samuel stankiewicz's user avatar
1 vote
1 answer
1k views

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 ...
Relativ9's user avatar
0 votes
1 answer
977 views

I'm working on a 3rd person platformer in Unity where I'm attempting to capture a Mario 64 style feel. Part of the game involves attaining really fast speeds. Currently, my turning code is pretty ...
lase's user avatar
  • 550