void Awake() { _navMeshManager = FindObjectOfType <PNavMeshManager>(); _pTransform = GetComponent <ParallelTransform>(); if (physicsBasedMovement) { _pRigidbody = GetComponent <ParallelRigidbody3D>(); if (_pRigidbody == null) { Debug.LogError("ParallelRigidbody3D not found"); } } }
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); } } } }
// Start is called before the first frame update void Start() { _pTransform = GetComponent <ParallelTransform>(); _rigidbody = GetComponent <ParallelRigidbody3D>(); _strength = (Fix64)strength; }
public void OnParallelTriggerEnter3D(ParallelRigidbody3D other) { Debug.Log($"OnParallelTriggerEnter3D {other.gameObject.name}"); }