Skip to content

u/CreeperFreaker

In this archive from Apr 2020 to May 2021

2
posts
1
comments
0
media
6
score

Top posts

Collision

Hey everyone. I am a beginner in Unity game development. Today I made player object (a basic cube) with a playermovement script. I also made an obstacle (a basic cube) with no script. Now the problem is, when I collide with my player into the obstacle, my playercube kind of clips through 2/5th of th...

4 points4 comments
Open on Reddit

Hey, so my player obstacle(a basic cube) keeps going through half of an obstacle(a basic cube) and I don't know how to fix this. I already tried going form an Update to a FixedUpdate but it still doesn't work Code is in text. (I am a beginner)

public class PlayerMovement : MonoBehaviour { // Variables private float horizontalInput; public float speed = 20; public float jumpPower = 10; private bool isOnGround = true; public float gravityPower = 1; private Rigidbody playerRb; private float leftBorder = -499.5f; // Start is called before the...

0 points7 comments
Open on Reddit

Top comments

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.