Example #1
0
        void Awake()
        {
            _navMeshManager = FindObjectOfType <PNavMeshManager>();
            _pTransform     = GetComponent <ParallelTransform>();

            if (physicsBasedMovement)
            {
                _pRigidbody = GetComponent <ParallelRigidbody3D>();
                if (_pRigidbody == null)
                {
                    Debug.LogError("ParallelRigidbody3D not found");
                }
            }
        }
Example #2
0
        private void OnDrawGizmos()
        {
            if (_started)
            {
                Gizmos.color = Color.green;
                Gizmos.DrawWireSphere(transform.position, sphereRadius);

                if (result.count > 0)
                {
                    Gizmos.color = Color.magenta;
                    for (int i = 0; i < result.count; i++)
                    {
                        ParallelRigidbody3D rigidBody3D = result.rigidbodies[i];
                        Gizmos.DrawWireSphere(rigidBody3D.transform.position + Vector3.up * 2, gizmoSize);
                    }
                }
            }
        }
Example #3
0
 // Start is called before the first frame update
 void Start()
 {
     _pTransform = GetComponent <ParallelTransform>();
     _rigidbody  = GetComponent <ParallelRigidbody3D>();
     _strength   = (Fix64)strength;
 }
Example #4
0
 public void OnParallelTriggerEnter3D(ParallelRigidbody3D other)
 {
     Debug.Log($"OnParallelTriggerEnter3D {other.gameObject.name}");
 }