Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

AddRigidBody Script Error

$
0
0
I'm not sure if this counts as an error since there's no error icon in the box. The player doesn't go through walls or the zombie, but the zombie goes through the walls. Everything has a collider box/capsule. The game is 3D. This is the script: using UnityEngine; using System.Collections; public class AddRigidbody: MonoBehaviour { public float mass; public Rigidbody rb; void Start() { rb = GetComponent(); rb.mass = mass; } } If you can help, that'd be great. Thanks!

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>