我剩下2個物體沒有剛體,右邊是剛性體(是Kinematic = false)。我可以通過左邊的和右邊的我可以移動。如何使角色不通過並移動對象? 沒有剛體 enter image description here 隨着剛體 enter image description here 字 enter image description here enter image description here
我想在Unity中產生一組座標的預製,但是這種情況不斷出現。 using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawning : MonoBehaviour {
public GameObject TestCube;
public
我一直在我的代碼中收到這個錯誤,我正在複製youtube以獲得更好的跳轉。有人可以向我解釋我的代碼有什麼問題嗎?在下面。 using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class jump : MonoBehaviour {
pu
這裏有人是絞刑架。 我有以下問題。我有兩個班。 .a類ListPainel。 和類項目要求。 類ListPainel 我有以下幾點: [System.Serializable]
public class Item
{
public GameObject slotPrafab;
public int numeroDeItensDisp;
public int numeroDeItensTo
您可以使用Transform屬性旋轉Unity中的任何可視對象。 LineRenderer是一個例外。您無法使用transform屬性移動或旋轉它。 LineRenderer與SetPosition或SetPositions功能移動,所以我managed,使其可移動通過變換位置屬性,但我不能讓讓它轉動了。 下面是我使用它來移動的代碼。 public Vector3 beginPos = new V