pickUse
unknown
csharp
a year ago
311 B
5
Indexable
[Export] private RayCast3D rayCast3D; void PickUse() { if(rayCast3D.IsColliding()) { var collider = rayCast3D.GetCollider(); //Debug.Print(collider.ToString()); if(collider is RigidBody3D rb) { Debug.Print("collider is Rigidbody3D"); carried_rb = rb; } } }
Editor is loading...
Leave a Comment