Questions tagged [character-controller]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

What are some strategies for handling multiple sources of control on a given entity?

Let's say I have a character controller on my player that is typically controlled using a script that reads human inputs and manipulates it using those inputs. But what if I also have a scene in my ...
user avatar
0 votes
0 answers
20 views

Collision not being detected on CharacterController in Unity

Help! For whatever reason, I was following a tutorial on Unity movement, and when I was going to test out collision for certain objectives in my game, for whatever reason collision is not being ...
user avatar
0 votes
1 answer
48 views

My First Person Player Capsule Is Always About 6 inches Under The Floor

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 ...
user avatar
1 vote
1 answer
105 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 ...
user avatar
0 votes
0 answers
22 views

ACharacter falls instead of landing back at its starting point when jumping at the edge of a ledge

I’m using ACharacter class for a 2D platformer game in Unreal 4.26. When the pawn (the main character) starts to jump from a the very edge of a ledge, it’s not able to land in the same position. ...
user avatar
  • 101
1 vote
0 answers
51 views

Character movement on irregular surface in Unity

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 ...
user avatar
0 votes
1 answer
60 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 ...
user avatar
1 vote
0 answers
32 views

Is treating object meshes as nav meshes a sensible strategy for grounding characters?

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 ...
user avatar
0 votes
2 answers
348 views

Unity - How to stop the slide on slopes?

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 address ...
user avatar
0 votes
0 answers
23 views

Making VR head turn add rotation to player controller

I want to make a control system where, if you look far enough left or right, the controller starts to rotate. To do this, I find the vector (Vh) between L & R hand controllers, then find the angle ...
user avatar
0 votes
1 answer
111 views

All kinds of 2key controls

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 ...
user avatar
  • 3
0 votes
0 answers
566 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 ...
user avatar
0 votes
0 answers
559 views

Box collider not colliding with Character controller

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 ...
user avatar
0 votes
1 answer
1k 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: ...
user avatar
0 votes
2 answers
610 views

How do i easily clamp my cameras rotation when using transform.rotate()

I'm making a fps controller, and I'm trying to clamp my cameras x rotation. Here's my code so far: ...
user avatar
  • 490
0 votes
1 answer
189 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 ...
user avatar
0 votes
1 answer
492 views

Rotating fps rigid body on the Y axis

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 ...
user avatar
  • 490
0 votes
1 answer
385 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) ...
user avatar
  • 3
0 votes
1 answer
87 views

How can I have the character come back to its full height after crouching?

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 ...
user avatar
1 vote
1 answer
923 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 ...
user avatar
1 vote
0 answers
66 views

Rotate the player in a certain way that makes it look like he is sliding

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 ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
  • 129
0 votes
1 answer
34 views

Buttons only trigger right/left movement once, not continually

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 ...
user avatar
1 vote
1 answer
687 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 ...
user avatar
0 votes
1 answer
215 views

Implementing a Turn Radius for a Character

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 ...
user avatar
  • 530
0 votes
0 answers
65 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 ...
user avatar
  • 445
0 votes
1 answer
349 views

Detect a collision between a CharacterController and a 3D Object?

I am making an XR game, and I am stuck with a part. Does anyone know a function that would detect this? OnCollisionEnter and ...
user avatar
0 votes
1 answer
388 views

How can I reset the mouse axes when respawning a player?

I am making a simple parkour game in which the camera will follow the mouse based on the mouse input axis * the sensitivity. This works great, but when I want to reset my character to the start I cant ...
user avatar
0 votes
1 answer
57 views

State Machine implementation issues

I have been working on a project for a while now, and i'm reaching the point where my character controller is starting to do more than just move/jump/crouch so I split the interaction stuff off into ...
user avatar